From 567fd32ee51156fa29d5e9f1b78988ebc532f6d0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=8E=E7=8E=89?=
Date: Thu, 15 Dec 2022 08:50:31 +0000
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20'jenkinsfile-api'?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
jenkinsfile-api | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
create mode 100644 jenkinsfile-api
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