Moving pending back to node

This commit is contained in:
Adam Lebsack 2016-11-22 11:52:32 +01:00
parent 67193d0975
commit 61dd300f29
1 changed files with 1 additions and 2 deletions

3
Jenkinsfile vendored
View File

@ -82,6 +82,7 @@ def reportStatus(target, state, message) {
def doInside(script, target, postStep = null) {
try {
reportStatus(target, 'PENDING', 'Build has started')
getSourceArchive()
sh "bash ${script} ${target}"
if(postStep) {
@ -97,7 +98,6 @@ def doInside(script, target, postStep = null) {
}
def doDockerBuild(target, postStep = null) {
reportStatus(target, 'PENDING', 'Build has started')
return {
node('docker') {
doInside('scripts/docker-test.sh', target, postStep)
@ -106,7 +106,6 @@ def doDockerBuild(target, postStep = null) {
}
def doBuild(nodeSpec, target, postStep = null) {
reportStatus(target, 'PENDING', 'Build has started')
return {
node(nodeSpec) {
doInside('scripts/test.sh', target, postStep)