Moving pending back to node
This commit is contained in:
parent
67193d0975
commit
61dd300f29
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue