Skip to content

Commit

Permalink
Few changes in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
aaradhak committed May 3, 2024
1 parent db06fb3 commit f5b72a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jobs/bump-jenkins-plugins.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ node {
userRemoteConfigs: [[url: "https://github.com/${fork_repo}.git"]],
extensions: [[$class: 'WipeWorkspace']]
]
/* Load utility functions */
pipeutils = load("utils.groovy")

properties([
Expand Down Expand Up @@ -85,14 +84,15 @@ node {
pluginsToUpdate["${pluginName}"] = [currentVersion, latestVersion]
println("Plugin: ${pluginName} current version is ${currentVersion}, it will be updated to latest version: ${latestVersion}")

/* Construct Plugins List to update for find/replace operations */
/* Plugins to be updated are added to the Plugins Update List */
pluginsUpdateList.add("-e s/${pluginName}:${currentVersion}/${pluginName}:${latestVersion}/g")

} else {
println("The latest version of ${pluginName} is already installed: ${currentVersion}")
}
}
}
/* Plugins find/replace operation */
if (!pluginsUpdateList.isEmpty()) {
def pluginUpdate = "sed -i " + pluginsUpdateList.join(' ')
shwrap("""
Expand All @@ -102,9 +102,9 @@ node {
}
}

/* Open a PR if there are plugin updates */
stage("Open a PR") {
if (shwrap("git diff --exit-code") != 0){
/* Commit and push changes, and open a PR */
def message = "jenkins/plugins: update to latest versions"
shwrap("""
cd fedora-coreos-pipeline
Expand Down

0 comments on commit f5b72a8

Please sign in to comment.