Skip to content

Commit

Permalink
Adding Jenkinsfile starter kit
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Van Fleet committed Jul 27, 2016
1 parent 7f5e3e3 commit f63663b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Jenkinsfile.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
node {

stage 'Checkout'

checkout scm

stage 'Acquire util'

sh 'mkdir -p bin'
dir('bin'){
git([ url: "https://github.internet2.edu/docker/util.git",
credentialsId: "jenkins-github-access-token" ])
sh 'ls'
sh 'mv bin/* .'
}

stage 'Base'

sh 'bin/build.sh'

stage 'Tests'

sh 'bin/test.sh'


}
3 changes: 3 additions & 0 deletions bin/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ mv util/README.md BINSCRIPTS.md
if [ ! -f common.bash ]; then
mv util/common.bash.sample common.bash
fi
if [ ! -f Jenkinsfile ]; then
mv util/Jenkinsfile.sample Jenkinsfile
fi
rm -rf util

0 comments on commit f63663b

Please sign in to comment.