This commit is contained in:
Shital Savekar 2018-05-31 13:50:27 -07:00
Родитель b3f8d42d59 f9c5d0c2b4
Коммит 30b3163ea0
2 изменённых файлов: 10 добавлений и 2 удалений

Просмотреть файл

@ -206,8 +206,12 @@ then
BuildState=$(curl --silent -X GET "https://${JenkinsUser}:${ApiToken}@${JenkinsURL}/job/${TestPipeline}/${BuildNumber}/api/json" | ./jq '.building' | sed 's/"//g')
BuildResult=$(curl --silent -X GET "https://${JenkinsUser}:${ApiToken}@${JenkinsURL}/job/${TestPipeline}/${BuildNumber}/api/json" | ./jq '.result' | sed 's/"//g')
BlueOceanURL="https://${JenkinsURL}/blue/organizations/jenkins/${TestPipeline}/detail/${TestPipeline}/${BuildNumber}/pipeline"
echo "BuildURL (Classic) : ${BuildURL}"
echo "--------------------------------------"
echo "BuildURL (BlueOcean) : ${BlueOceanURL}"
echo "--------------------------------------"
echo "BuildURL (Classic) : ${BuildURL}console"
echo "--------------------------------------"
if [[ $WaitForResult == "yes" ]];
then
while [[ "$BuildState" == "true" ]]

Просмотреть файл

@ -69,4 +69,8 @@ LinuxPassword=""
#Required (Your pipeline name)
TestPipeline=""
#Example TestPipeline="<PatnerName>-Test-Execution-Pipeline"
#Example TestPipeline="<PatnerName>-Test-Execution-Pipeline"
#Optinal. (Keep the polling enabled after build job is triggered and exit with final result.)
WaitForResult=""
#Example WaitForResul="yes"