Define root element as var.

This commit is contained in:
Manuele Simi 2021-01-31 22:57:53 -05:00
parent a94fd80ce7
commit 0942dfc7fb
1 changed files with 2 additions and 1 deletions

3
Jenkinsfile vendored
View File

@ -66,13 +66,14 @@ pipeline {
echo "#Build ${PIPELINE_BUILD_NUMBER},," > $ACTION_REPORT echo "#Build ${PIPELINE_BUILD_NUMBER},," > $ACTION_REPORT
echo "#StartTime ${date},," >> $ACTION_REPORT echo "#StartTime ${date},," >> $ACTION_REPORT
echo "Project,Repo,Result" >> $ACTION_REPORT echo "Project,Repo,Result" >> $ACTION_REPORT
echo -e "<actions from=\"${ACTION_URL}\">" > $ACTION_OUTPUT
''' '''
} }
} }
stage('clone and exec') { stage('clone and exec') {
steps { steps {
script { script {
def start_el = "<actions from=\"${actionURL}\">"
sh "echo -e '${start_el}' >> $ACTION_OUTPUT"
for (int i = 0; i < projects.size(); i++) { for (int i = 0; i < projects.size(); i++) {
stage(projects[i]) { stage(projects[i]) {
echo "About to execute over ${projects[i]}" echo "About to execute over ${projects[i]}"