Commit 91d32e60 authored by Morten Knutsen's avatar Morten Knutsen
Browse files

Jenkinsfile: Deploy generated deb to UNINETT APT repo.

parent ffee4de1
......@@ -26,6 +26,13 @@ node {
stage 'package'
unstash 'binary'
sh 'fpm -s dir -t deb -n jwt-tokenissuer -v \$VERSION_STRING dist/linux-amd64=/opt/jwt-tokenissuer'
stash includes: '*.deb', name: 'package'
archive includes: '*.deb'
}
stage 'deploy'
unstash 'package'
withEnv(['OS=jessie','POOL=laas','ARCH=amd64']) {
sh 'scp *.deb jenkins@apt.uninett.no:/www/apt.uninett.no/htdocs/\$OS/pool/\$POOL/binary-\$ARCH/'
sh 'ssh jenkins@apt.uninett.no /www/apt.uninett.no/bin/mkrepo.debian'
}
}
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