Add pipeline for staging jobs 87/102087/25
authorMarioDoman <mario.doman@pantheon.tech>
Thu, 30 Jun 2022 10:43:35 +0000 (12:43 +0200)
committerRobert Varga <nite@hq.sk>
Sun, 4 Dec 2022 12:10:19 +0000 (12:10 +0000)
This adds a bare-bones stage pipeline, which can build and deploy the
project.

Change-Id: I6f4b31d26b2e2b51d36c758e8e72b487e43c92fd
Signed-off-by: MarioDoman <mario.doman@pantheon.tech>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
Jenkinsfile [new file with mode: 0644]

diff --git a/Jenkinsfile b/Jenkinsfile
new file mode 100644 (file)
index 0000000..3fd5cb8
--- /dev/null
@@ -0,0 +1,32 @@
+pipeline {
+    agent {
+        node {
+            label "centos8-builder-4c-4g"
+        }
+    }
+
+    options {
+        timestamps()
+        timeout(360)
+    }
+
+    stages {
+        stage("Print ENV") {
+            steps {
+                sh "printenv"
+            }
+        }
+
+        stage('mvn deploy') {
+            steps {
+                lfJava(mvnSettings: 'yangtools-settings')
+            }
+        }
+
+        stage('post build') {
+            steps {
+                lfInfraShipLogs{}
+            }
+        }
+    }
+}
\ No newline at end of file