Skip to content

Commit

Permalink
Add -e flag
Browse files Browse the repository at this point in the history
  • Loading branch information
aaradhak committed May 3, 2024
1 parent c3b2511 commit ee7f58b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions jenkins/controller/plugins.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
# [2] https://github.com/openshift/jenkins/blob/master/2/contrib/openshift/base-plugins.txt
# [3] https://github.com/openshift/jenkins#plugin-installation-for-centos7-v410
basic-branch-build-strategies:1.3.2
generic-webhook-trigger:1.84.2
generic-webhook-trigger:2.2.0
github-oauth:0.39
kubernetes-credentials-provider:1.199.v4a_1d1f5d074f
pipeline-github:2.8-138.d766e30bb08b
kubernetes-credentials-provider:1.262.v2670ef7ea_0c5
pipeline-github:2.8-159.09e4403bc62f
slack:625.va_eeb_b_168ffb_0
timestamper:1.20
timestamper:1.26
splunk-devops-extend:1.9.9
splunk-devops:1.9.9
antisamy-markup-formatter:162.v0e6ec0fcfcf6
Expand Down
6 changes: 3 additions & 3 deletions jobs/bump-jenkins-plugins.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ node {
""")
*/
//sedCommands.add("s/${pluginName}:${currentVersion}/${pluginName}:${latestVersion}/g")
def sedCom = "s/${pluginName}:${currentVersion}/${pluginName}:${latestVersion}/g"
def sedCom = "-e s/${pluginName}:${currentVersion}/${pluginName}:${latestVersion}/g"
println("Adding sed command: ${sedCom}")
sedCommands.add(sedCom)
} else {
Expand All @@ -102,12 +102,12 @@ node {
}
if (!sedCommands.isEmpty()) {
println("sedcommand edit starts")
def sedCommand = "sed -i -e" + sedCommands.join(' ')
def sedCommand = "sed -i " + sedCommands.join(' ')
println("Executing sed command: ${sedCommand}")
shwrap("""
cd fedora-coreos-pipeline
ls -l ${plugins_lockfile}
echo ${sedCommand} ${plugins_lockfile}
${sedCommand} ${plugins_lockfile}
""")
}
}
Expand Down

0 comments on commit ee7f58b

Please sign in to comment.