Browse Source

jenkinsfile

dev
CODE 11 months ago
parent
commit
21fd2dd70a
  1. 0
      jenkinsfilenew_script_1.3.1_1_insert_report_data
  2. 21
      jenkinsfilenew_script_1.4.0_1_calc_village_distance

0
jenkinsfilenew_node → jenkinsfilenew_script_1.3.1_1_insert_report_data

21
jenkinsfilenew_script_1.4.0_1_calc_village_distance

@ -0,0 +1,21 @@
podTemplate {
node('pod-templ-jenkins-slave-common') {
env.IMAGE_NAME = "${IOT_IMAGES_REGISTRY}/${SMARTCITY}/${JOB_NAME}"
env.IMAGE_NAME_SHORT = "${SMARTCITY}/${JOB_NAME}"
env.CODE_ADDR = "${GIT_ADDRESS}/free-sun/Highways4Good.git"
stage('Run shell') {
git branch: 'dev', credentialsId: 'gitea-builder', url: "${CODE_ADDR}"
container('image-builder') {
sh'''
/kaniko/executor --context=${BUILD_WORKSPACE} --dockerfile=./scripts/1.4.0/data/1_calc_village_distance/Dockerfilenew --destination=${IMAGE_NAME}:${IMAGE_VERSION} --cache=false --cleanup
'''
}
buildName "${IMAGE_NAME_SHORT}:${IMAGE_VERSION}"
buildDescription "${IMAGE_NAME}:${IMAGE_VERSION}"
}
}
}
Loading…
Cancel
Save