change report fields. add status field
This commit is contained in:
parent
312c3685ae
commit
a126392466
|
@ -60,7 +60,7 @@ pipeline {
|
||||||
echo "#Build ${PIPELINE_BUILD_NUMBER},,,,," > $PUSH_REPORT
|
echo "#Build ${PIPELINE_BUILD_NUMBER},,,,," > $PUSH_REPORT
|
||||||
echo "#StartTime ${date},,,,," >> $PUSH_REPORT
|
echo "#StartTime ${date},,,,," >> $PUSH_REPORT
|
||||||
echo "#Release ${gCube_release_version},,,,," >> $PUSH_REPORT
|
echo "#Release ${gCube_release_version},,,,," >> $PUSH_REPORT
|
||||||
echo "ArtifactID,Version,SCM URL,Build Number,Component Tag,Release Tag" >> $PUSH_REPORT
|
echo "ArtifactID,Version,SCM URL,Build Number,Push response" >> $PUSH_REPORT
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -72,7 +72,7 @@ pipeline {
|
||||||
echo "About to push ${components[i]['name']} with version ${components[i]['version']}"
|
echo "About to push ${components[i]['name']} with version ${components[i]['version']}"
|
||||||
checkout_from_reference(components[i]['name'], components[i]['gitRepo'],
|
checkout_from_reference(components[i]['name'], components[i]['gitRepo'],
|
||||||
components[i]['commitID'], components[i]['version'], gCube_release_version)
|
components[i]['commitID'], components[i]['version'], gCube_release_version)
|
||||||
sh "echo -e ${components[i]['name']},${components[i]['version']},${components[i]['gitRepo']},${components[i]['commitID']},v${components[i]['version']},r${gCube_release_version} >> $PUSH_REPORT"
|
// sh "echo -e ${components[i]['name']},${components[i]['version']},${components[i]['gitRepo']},${components[i]['commitID']},v${components[i]['version']},r${gCube_release_version} >> $PUSH_REPORT"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -134,8 +134,12 @@ def checkout_from_reference(repo_name, repo_url, commit, version, gCube_release_
|
||||||
]
|
]
|
||||||
])
|
])
|
||||||
if (params.Type == "PUSH") {
|
if (params.Type == "PUSH") {
|
||||||
push(repo_url, repo_name, "v${version}", "r${gCube_release_version}", commit)
|
def status=push(repo_url, repo_name, "v${version}", "r${gCube_release_version}", commit)
|
||||||
|
sh "echo -e ${components[i]['name']},${components[i]['version']},${components[i]['gitRepo']},${components[i]['commitID']},status >> $PUSH_REPORT"
|
||||||
|
}else{
|
||||||
|
sh "echo -e ${components[i]['name']},${components[i]['version']},${components[i]['gitRepo']},${components[i]['commitID']},unsent >> $PUSH_REPORT"
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue