Skip to content

Commit

Permalink
Add Jenkinsfile
Browse files Browse the repository at this point in the history
I'm setting up a Jeknins instance (https://jenkins.cilium.io/). This
patch adds a simple Jenkinsfile that runs tests inside Vagrant. The
goal is to have Jenkins run the build on pull requests and on the
master branch whenever there is a change.

Signed-off-by: Michi Mutsuzaki <michi@covalent.io>
  • Loading branch information
Michi Mutsuzaki authored and tgraf committed Mar 22, 2017
1 parent 17999e6 commit 5bff90b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
pipeline {
agent {
label 'vagrant'
}
stages {
stage('Build') {
environment {
MEMORY = '4096'
RUN_TEST_SUITE = '1'
}
steps {
sh './contrib/vagrant/start.sh'
}
}
}
post {
always {
sh 'vagrant destroy -f'
}
}
}

0 comments on commit 5bff90b

Please sign in to comment.