Skip to content

Commit

Permalink
added Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
asafg6 committed Nov 4, 2019
1 parent 7a880ca commit 2834f16
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@


pipeline {
agent { node { label 'build-packer' }}
stages {
stage('Build') {
steps {
sh 'FILES=$(ls) && mkdir -p src/github.com/veertuinc/packer-builder-veertu-anka && for FILE in "${FILES[@]}"; do mv $FILE ./src/github.com/veertuinc/packer-builder-veertu-anka/ ; done'
sh 'export GOPATH=$PWD && cd ./src/github.com/veertuinc/packer-builder-veertu-anka/ && make build'
}
}
stage('Publish') {
steps {
archiveArtifacts artifacts: '**/src/github.com/veertuinc/packer-builder-veertu-anka/packer-builder-veertu-anka'
}
}
}
}


0 comments on commit 2834f16

Please sign in to comment.