Define root element as var.
This commit is contained in:
parent
a94fd80ce7
commit
0942dfc7fb
|
@ -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]}"
|
||||||
|
|
Loading…
Reference in New Issue