diff --git a/jenkinsfile-api b/jenkinsfile-api new file mode 100644 index 0000000..5ab07ab --- /dev/null +++ b/jenkinsfile-api @@ -0,0 +1,18 @@ +pipeline { + agent { + node{ + label 'jnlp-slave' + } + } + + stages { + stage('Testing missionboard-api ......') { + steps { + buildName "#${BUILD_NUMBER} ~/devops/${JOB_NAME}:${IMAGE_VERSION}" + buildDescription "harbor.anxinyun.cn/devops/${JOB_NAME}:${IMAGE_VERSION}" + sh 'nerdctl build -t harbor.anxinyun.cn/devops/${JOB_NAME}:${IMAGE_VERSION} ./gowork' + sh 'nerdctl push harbor.anxinyun.cn/devops/${JOB_NAME}:${IMAGE_VERSION}' + } + } + } +} \ No newline at end of file