Browse Source

update build script and introduce artifacts for void

Steven Jacobs 1 year ago
parent
commit
b26f058691
1 changed files with 5 additions and 12 deletions
  1. 5 12
      Jenkinsfile

+ 5 - 12
Jenkinsfile

@@ -4,20 +4,13 @@ pipeline {
         stage('Build') {
             steps {
                 echo 'Building..'
-                sh 'pwd'
-		sh 'ls -alh'
-                sh 'cd void && packer build -only=qemu void-20171007-x86_64.json'
+                sh 'cd void/ && packer build -only=qemu void-20171007-x86_64.json && cd ../'
             }
         }
-        stage('Test') {
-            steps {
-                echo 'Testing..'
-            }
-        }
-        stage('Deploy') {
-            steps {
-                echo 'Deploying....'
-            }
+    }
+    post {
+        always {
+            archiveArtifacts artifacts: 'dist/void-x86_64-20171007-qemu/*', fingerprint: true
         }
     }
 }