diff --git a/Jenkinsfile b/Jenkinsfile index 4965fc2..e39d731 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -75,8 +75,7 @@ ], inLabels: [ 'ubuntu-16', 'centos-7' ], onLabels: [ default: 'master', docker: 'docker', mac: 'mac', android: 'android', ], - cronPoll: '@hourly', // Fallback only if post-commit failed - noPoll: "(${releaseBranch}|.+_.+)", // Don't poll or automatically trigger release and private branches + noIndex: "(${releaseBranch}|.+_.+)", // Avoid automatic indexing for release and private branches ) lazyStage { @@ -188,6 +187,9 @@ // Tag and publish changes in release branch gitTag("${nextVersion}") gitPush(remote, "${releaseBranch} ${nextVersion}") + // Update the displayed version for this build + currentVersion = gitLastTag() + currentBuild.displayName = "#${env.BUILD_NUMBER} ${currentVersion}" }) }, // Can not be done in parallel