parameters { choice(choices: ['SNAPSHOT', 'RELEASE'], description: 'The type of artifacts the build is expected to generate', name: 'Type') } node { stage('build core components') { echo "will deploy artifacts of type: ${params.Type}" withMaven(jdk: 'OpenJDK 8') { build 'maven-parent' build 'gcube-bom' build 'authorization-common-library' build 'gxRest' } } }