Commit dad1261e authored by Morten Knutsen's avatar Morten Knutsen
Browse files

Jenkinsfile: There is probably a better way..

parent 01a2f42d
...@@ -11,15 +11,14 @@ node { ...@@ -11,15 +11,14 @@ node {
sh 'env' sh 'env'
sh 'mkdir -p \$GOPATH/src/github.com/uninett/jwt-tokenissuer' sh 'mkdir -p \$GOPATH/src/github.com/uninett/jwt-tokenissuer'
sh 'cp -r . \$GOPATH/src/github.com/uninett/jwt-tokenissuer' sh 'cp -r . \$GOPATH/src/github.com/uninett/jwt-tokenissuer'
sh 'cd \$GOPATH/src/github.com/uninett/jwt-tokenissuer'
sh 'curl https://glide.sh/get | sh' sh 'curl https://glide.sh/get | sh'
sh 'git config --global user.name "jenkins"' sh 'git config --global user.name "jenkins"'
sh 'git config --global user.email "jenkins@localhost"' sh 'git config --global user.email "jenkins@localhost"'
sh 'glide install' sh 'cd \$GOPATH/src/github.com/uninett/jwt-tokenissuer && glide install'
sh 'make test' sh 'cd \$GOPATH/src/github.com/uninett/jwt-tokenissuer && make test'
stage 'build' stage 'build'
sh 'make build' sh 'cd \$GOPATH/src/github.com/uninett/jwt-tokenissuer && make build && cp -r dist \$HOME/'
stash includes: 'dist/linux-amd64/jwt-tokenissuer', name: 'binary' stash includes: 'dist/linux-amd64/jwt-tokenissuer', name: 'binary'
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment