Define the full pipeline and organize the stages in steps.
This commit is contained in:
parent
f9271e7f99
commit
415da5a172
|
@ -1,18 +1,34 @@
|
||||||
|
if (params.Type == 'SNAPSHOT') {
|
||||||
|
echo "Will configure Maven for SNAPSHOT artifacts"
|
||||||
|
}
|
||||||
|
if (params.Type == 'RELEASE') {
|
||||||
|
echo "Will configure Maven for RELEASE artifacts"
|
||||||
|
}
|
||||||
|
|
||||||
|
pipeline {
|
||||||
|
agent any
|
||||||
|
|
||||||
parameters {
|
parameters {
|
||||||
choice(choices: ['SNAPSHOT', 'RELEASE'],
|
choice(choices: ['SNAPSHOT', 'RELEASE'],
|
||||||
description: 'The type of artifacts the build is expected to generate',
|
description: 'The type of artifacts the build is expected to generate',
|
||||||
name: 'Type')
|
name: 'Type')
|
||||||
}
|
}
|
||||||
|
|
||||||
node {
|
stages {
|
||||||
stage('build core components') {
|
stage('build core components') {
|
||||||
echo "will deploy artifacts of type: ${params.Type}"
|
steps {
|
||||||
withMaven(jdk: 'OpenJDK 8') {
|
withMaven(jdk: 'OpenJDK 8') {
|
||||||
build 'maven-parent'
|
build 'maven-parent'
|
||||||
build 'gcube-bom'
|
build 'gcube-bom'
|
||||||
build 'authorization-common-library'
|
build 'authorization-common-library'
|
||||||
build 'gxRest'
|
build 'gxRest'
|
||||||
|
}
|
||||||
|
script {
|
||||||
|
echo "Done with core components"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue