From f63663b40d8eff78bce994a026ec83982660f513 Mon Sep 17 00:00:00 2001 From: Jim Van Fleet Date: Wed, 27 Jul 2016 11:55:21 -0400 Subject: [PATCH] Adding Jenkinsfile starter kit --- Jenkinsfile.sample | 26 ++++++++++++++++++++++++++ bin/install.sh | 3 +++ 2 files changed, 29 insertions(+) create mode 100644 Jenkinsfile.sample diff --git a/Jenkinsfile.sample b/Jenkinsfile.sample new file mode 100644 index 0000000..aead388 --- /dev/null +++ b/Jenkinsfile.sample @@ -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' + + +} \ No newline at end of file diff --git a/bin/install.sh b/bin/install.sh index c34f1b3..2e0c8c2 100755 --- a/bin/install.sh +++ b/bin/install.sh @@ -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 \ No newline at end of file