Selaa lähdekoodia

added sgent spec

Raymond Edah 7 vuotta sitten
vanhempi
commit
e484ef2068
1 muutettua tiedostoa jossa 20 lisäystä ja 12 poistoa
  1. 20 12
      Jenkinsfile

+ 20 - 12
Jenkinsfile

@@ -1,16 +1,24 @@
-node {
+pipeline {
     checkout scm
     agent { label 'smartos' }
 
-    stage('Build') {
-        echo 'Building....'
-        echo "Running ${env.BUILD_ID} on ${env.JENKINS_URL}"
-        sh 'buildscripts/clean.sh'
+    stages {
+        stage('Build') {
+            steps {
+                echo 'Building..'
+                echo "Running ${env.BUILD_ID} on ${env.JENKINS_URL}"
+                sh 'buildscripts/clean.sh'
+            }
+        }
+        stage('Test') {
+            steps {
+                echo 'Testing..'
+            }
+        }
+        stage('Deploy') {
+            steps {
+                echo 'Deploying....'
+            }
+        }
     }
-    stage('Test') {
-        echo 'Building....'
-    }
-    stage('Deploy') {
-        echo 'Deploying....'
-    }
-}
+}