pipeline {
agent { label 'ci21' }
environment {
VERSION = getVersion()
ECR_URI = '633349536424.dkr.ecr.cn-north-1.amazonaws.com.cn'
RELEASE_S3_BUCKET_NAME='flexgalaxy-test-docs'
DEPLOY_S3_BUCKET_NAME='flexgalaxy-ai-docs'
}
parameters {
string(name: 'JDKVERSION', defaultValue: '1.0.0.10108')
}
stages {
stage('Check parameters') {
when {
expression { params.JDKVERSION == '' || params.JDKVERSION == 'none' }
}
steps {
echo 'JDKVERSION:' + params.JDKVERSION
echo 'parameters is illegal, this build will return fail and exit'
sh 'exit 1'