diff --git a/Jenkinsfile b/Jenkinsfile index 348b369..37e6d19 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -223,10 +223,11 @@ sh("ls -lA app/build/outputs/apk") }, run: { - def currentVersion = [ name: getVersion('versionName') as String, code: getVersion('versionCode') as Integer ] - def nextVersion = [ name: currentVersion.name, code: currentVersion.code + 1] - echo("currentVersion = ${currentVersion.toString()} / nextVersion = ${nextVersion.toString()}") withGitPassword('bot-ci-dgm', { + sh("git pull ${release['remote']} ${release['branch']}") + def currentVersion = [ name: getVersion('versionName') as String, code: getVersion('versionCode') as Integer ] + def nextVersion = [ name: currentVersion.name, code: currentVersion.code + 1] + echo("currentVersion = ${currentVersion.toString()} / nextVersion = ${nextVersion.toString()}") if ( env.DRYRUN != 'true' ) fastlane('android', 'alpha') gitTag("${currentVersion.name}-${currentVersion.code}") gitUpdateVersion(nextVersion.name, nextVersion.code, release['remote'], release['branch'])