0
我正在嘗試運行http調用來測試將要在jenkins機器上運行的活動web api。如何讓jenkins移動到下一階段,如果它的「終端」被阻止?
這是使用的管道腳本。
stage 'build'
node {
git url: 'https://github.com/juliomarcos/sample-http-test-ci/'
sh "npm install"
sh "npm start"
}
stage 'test'
node {
sh "npm test"
}
但是詹金斯會不會移動到測試一步。如何在Web應用程序完全啓動後運行npm test
?
如果我這樣做,我怎麼能確定測試只會在應用程序完成其啓動過程後纔開始? –
看到我的編輯,它可能會有所幫助 –