Browse Source

更新 'jenkinsfile_vcmp_script_1.3.1'

dev_trial
iris_cx 1 year ago
parent
commit
a70131ebf3
  1. 24
      jenkinsfile_vcmp_script_1.3.1
  2. 18
      jenkinsfile_vcmp_script_1.3.6_data_1

24
jenkinsfile_vcmp_script_1.3.1

@ -0,0 +1,24 @@
podTemplate {
node('pod-templ-jenkins-slave-common') {
env.IMAGE_NAME = "${IOT_IMAGES_REGISTRY}/${IOT}/${JOB_NAME}"
env.IMAGE_NAME_SHORT = "${IOT}/${JOB_NAME}"
env.CODE_ADDR = "${GIT_ADDRESS}/free-sun/FS-IOT.git"
stage('Run shell') {
git branch: 'dev_trial', credentialsId: 'gitea-builder', url: "${CODE_ADDR}"
container('image-builder') {
sh'''
pwd
ls -al
/kaniko/executor --context=${BUILD_WORKSPACE} --dockerfile=./code/VideoAccess-VCMP/script/1.3.1/data/1_sync_camera_data/Dockerfile --destination=${IMAGE_NAME}:${IMAGE_VERSION} --cache=false --cleanup
'''
}
buildName "${IMAGE_NAME_SHORT}:${IMAGE_VERSION}"
buildDescription "${IMAGE_NAME}:${IMAGE_VERSION}"
}
}
}

18
jenkinsfile_vcmp_script_1.3.6_data_1

@ -1,18 +0,0 @@
pipeline {
agent {
node{
label 'jnlp-slave'
}
}
stages {
stage('jenkinsfile_vcmp_script_1.3 ......') {
steps {
buildName "#${BUILD_NUMBER} ~/iot/${JOB_NAME}:${IMAGE_VERSION}"
buildDescription "harbor.anxinyun.cn/iot/${JOB_NAME}:${IMAGE_VERSION}"
sh 'nerdctl build -t harbor.anxinyun.cn/iot/${JOB_NAME}:${IMAGE_VERSION} ./code/VideoAccess-VCMP/script/1.3.6/data/1_batch_entry_camera'
sh 'nerdctl push harbor.anxinyun.cn/iot/${JOB_NAME}:${IMAGE_VERSION}'
}
}
}
}
Loading…
Cancel
Save