Read lines instead of splitting them.
This commit is contained in:
parent
c48b248d69
commit
e003718e68
|
@ -117,7 +117,6 @@ pipeline {
|
||||||
*/
|
*/
|
||||||
def checkout_and_exec(repo_name, actions) {
|
def checkout_and_exec(repo_name, actions) {
|
||||||
def repo_url = "${repo_root}/{$repo_name}"
|
def repo_url = "${repo_root}/{$repo_name}"
|
||||||
echo "Checkout SHA from reference $commit"
|
|
||||||
sh(script: "rm -r ${repo_name} || true", returnStdout: true)?.trim()
|
sh(script: "rm -r ${repo_name} || true", returnStdout: true)?.trim()
|
||||||
checkout([
|
checkout([
|
||||||
$class : 'GitSCM',
|
$class : 'GitSCM',
|
||||||
|
@ -171,7 +170,7 @@ def exec(actions, repo_url, repo_name) {
|
||||||
@NonCPS
|
@NonCPS
|
||||||
def parseProjectList(def text) {
|
def parseProjectList(def text) {
|
||||||
def projects = []
|
def projects = []
|
||||||
"${text}".splitEachLine(',') { project ->
|
text.readLines().each { project ->
|
||||||
if (!project)
|
if (!project)
|
||||||
return
|
return
|
||||||
projects.add(project)
|
projects.add(project)
|
||||||
|
|
Loading…
Reference in New Issue