diff --git a/releng/promote-a-build.Jenkinsfile b/releng/promote-a-build.Jenkinsfile index 3f580a28f13..509ebecceb3 100644 --- a/releng/promote-a-build.Jenkinsfile +++ b/releng/promote-a-build.Jenkinsfile @@ -17,6 +17,25 @@ pipeline { stages { stage('Upload') { steps { + script { + def jobName = "$CDT_REPO/job/$CDT_BRANCH" + def description = "Promoted as $MILESTONE to download.eclipse.org/tools/cdt/$RELEASE_OR_BUILD/$MINOR_VERSION/$MILESTONE" + if (params.DRY_RUN) { + description = "Dry Run: $description" + } + + // TODO: Can we get permission from EF IT to use Jenkins.instance.getItemByFullName + // def job = Jenkins.instance.getItemByFullName(jobName) + // def build = job?.getBuildByNumber(buildNumber) + + // if (build) { + // build.setDescription(description) + // build.keepLog(true) + // } else { + // echo "Build not found: ${jobName} #${CDT_BUILD_NUMBER}" + // } + currentBuild.description = "$description from $CDT_REPO/job/$CDT_BRANCH/$CDT_BUILD_NUMBER" + } sshagent ( ['projects-storage.eclipse.org-bot-ssh']) { sh './releng/scripts/promote-a-build.sh' }