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) {
|
def doInside(script, target, postStep = null) {
|
||||||
try {
|
try {
|
||||||
|
reportStatus(target, 'PENDING', 'Build has started')
|
||||||
getSourceArchive()
|
getSourceArchive()
|
||||||
sh "bash ${script} ${target}"
|
sh "bash ${script} ${target}"
|
||||||
if(postStep) {
|
if(postStep) {
|
||||||
|
@ -97,7 +98,6 @@ def doInside(script, target, postStep = null) {
|
||||||
}
|
}
|
||||||
|
|
||||||
def doDockerBuild(target, postStep = null) {
|
def doDockerBuild(target, postStep = null) {
|
||||||
reportStatus(target, 'PENDING', 'Build has started')
|
|
||||||
return {
|
return {
|
||||||
node('docker') {
|
node('docker') {
|
||||||
doInside('scripts/docker-test.sh', target, postStep)
|
doInside('scripts/docker-test.sh', target, postStep)
|
||||||
|
@ -106,7 +106,6 @@ def doDockerBuild(target, postStep = null) {
|
||||||
}
|
}
|
||||||
|
|
||||||
def doBuild(nodeSpec, target, postStep = null) {
|
def doBuild(nodeSpec, target, postStep = null) {
|
||||||
reportStatus(target, 'PENDING', 'Build has started')
|
|
||||||
return {
|
return {
|
||||||
node(nodeSpec) {
|
node(nodeSpec) {
|
||||||
doInside('scripts/test.sh', target, postStep)
|
doInside('scripts/test.sh', target, postStep)
|
||||||
|
|
Loading…
Reference in New Issue