add new deploy stage
This commit is contained in:
parent
0a45372d08
commit
2c730a8f30
|
@ -0,0 +1,3 @@
|
|||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
|
@ -124,6 +124,12 @@ pipeline {
|
|||
string(name: 'resume_from',
|
||||
defaultValue: '',
|
||||
description: 'Resume from a previous build identified by the build number.')
|
||||
|
||||
booleanParam(name: 'ContinuousDeployment',
|
||||
defaultValue: false,
|
||||
description: 'If true, the gCubeDeployer pipeline is triggered')
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
//see https://jenkins.io/doc/book/pipeline/syntax/#stages
|
||||
|
@ -242,6 +248,19 @@ pipeline {
|
|||
}
|
||||
}
|
||||
}
|
||||
stage('Deploy components') {
|
||||
when {
|
||||
expression { params.ContinuousDeployment == 'true' }
|
||||
}
|
||||
steps {
|
||||
script {
|
||||
def pjob = build(job: 'gCubeDeployer', wait: true, propagate: true,
|
||||
parameters: [[$class: 'StringParameterValue', name: 'gCube_release_version', value: "${params.gCube_release_version}"],
|
||||
[$class: 'StringParameterValue', name: 'TRIGGER_JOB', value: "${JOB_NAME}"]]
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue