wenlele
2 years ago
2 changed files with 30 additions and 10 deletions
@ -1,19 +1,39 @@ |
|||||
|
// pipeline { |
||||
|
// agent { |
||||
|
// node{ |
||||
|
// label 'jnlp-slave' |
||||
|
// } |
||||
|
// } |
||||
|
|
||||
|
// stages { |
||||
|
// stage('Testing vcmp ......') { |
||||
|
// steps { |
||||
|
// sh 'switch-auth.sh anxinyun' |
||||
|
// buildName "#${BUILD_NUMBER} ~/fs-cloud/${JOB_NAME}:${IMAGE_VERSION}" |
||||
|
// buildDescription "harbor.anxinyun.cn/${CLOUD}/${JOB_NAME}:${IMAGE_VERSION}" |
||||
|
// sh 'ctr build -t harbor.anxinyun.cn/${CLOUD}/${JOB_NAME}:${IMAGE_VERSION} ./code/VideoAccess-VCMP/api' |
||||
|
// sh 'ctr push harbor.anxinyun.cn/${CLOUD}/${JOB_NAME}:${IMAGE_VERSION}' |
||||
|
// } |
||||
|
// } |
||||
|
// } |
||||
|
// } |
||||
|
|
||||
pipeline { |
pipeline { |
||||
agent { |
agent { |
||||
node{ |
node{ |
||||
label 'jnlp-slave' |
label 'jnlp-slave' |
||||
} |
} |
||||
} |
} |
||||
|
|
||||
stages { |
stages { |
||||
stage('Testing vcmp ......') { |
stage('Testing site......') { |
||||
steps { |
steps { |
||||
sh 'switch-auth.sh anxinyun' |
buildName "#${BUILD_NUMBER} ~/smart-site/${JOB_NAME}:${IMAGE_VERSION}" |
||||
buildName "#${BUILD_NUMBER} ~/fs-cloud/${JOB_NAME}:${IMAGE_VERSION}" |
buildDescription "harbor.anxinyun.cn/smart-site/${JOB_NAME}:${IMAGE_VERSION}" |
||||
buildDescription "harbor.anxinyun.cn/${CLOUD}/${JOB_NAME}:${IMAGE_VERSION}" |
sh 'nerdctl build -t harbor.anxinyun.cn/smart-site/${JOB_NAME}:${IMAGE_VERSION} .' |
||||
sh 'ctr build -t harbor.anxinyun.cn/${CLOUD}/${JOB_NAME}:${IMAGE_VERSION} ./code/VideoAccess-VCMP/api' |
sh 'nerdctl push harbor.anxinyun.cn/smart-site/${JOB_NAME}:${IMAGE_VERSION}' |
||||
sh 'ctr push harbor.anxinyun.cn/${CLOUD}/${JOB_NAME}:${IMAGE_VERSION}' |
|
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
} |
} |
Loading…
Reference in new issue