Skip to content

Commit

Permalink
INFRA-468: Update workflow-cps-global-lib,docker-commons,pipeline-sta…
Browse files Browse the repository at this point in the history
…ge-view,jira (#48)

* INFRA-468: Update workflow-cps-global-lib,docker-commons,pipeline-stage-view,jira

* Add sudo to sed

* Fix test
  • Loading branch information
enyachoke authored Aug 28, 2024
1 parent 008a48e commit 4a492e5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion docker/config/plugins.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,9 @@ simple-theme-plugin:191.vcd207ef9dd24
login-theme:1.1
blueocean:1.27.13
maven-plugin:3.16
google-login:109.v022b_cf87b_e5b_
google-login:109.v022b_cf87b_e5b_
workflow-cps-global-lib:612.v55f2f80781ef
docker-commons:439.va_3cb_0a_6a_fb_29
git-server:126.v0d945d8d2b_39
pipeline-stage-view:2.34
jira:3.13
2 changes: 1 addition & 1 deletion node-scripts/spec/pipeline3/scripts.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ describe("Scripts", function() {
'\techo "KEY=a/path/on/the/disk" >> .env\n' +
"else\n" +
"\techo \"'KEY' is found in file '.env'. Updating...\"\n" +
'\tsed -i "s/^[#]*\\s*KEY\\b.*/KEY=a\\/path\\/on\\/the\\/disk/" .env\n' +
'\tsudo sed -i "s/^[#]*\\s*KEY\\b.*/KEY=a\\/path\\/on\\/the\\/disk/" .env\n' +
"fi\n"
);
});
Expand Down
2 changes: 1 addition & 1 deletion node-scripts/src/pipeline3/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ module.exports = {

// 'sed' will need an escaped string at runtime. Escaping.
var valueEscaped = value.replace(/\//g, "\\/");
script += `\tsed -i "s/^[#]*\\s*${propertyName}\\b.*/${propertyName}=${valueEscaped}/" ${filename}\n`;
script += `\tsudo sed -i "s/^[#]*\\s*${propertyName}\\b.*/${propertyName}=${valueEscaped}/" ${filename}\n`;
script += "fi\n";
return script;
},
Expand Down

0 comments on commit 4a492e5

Please sign in to comment.