diff options
Diffstat (limited to 'jenkins-builds/promote-to-release-ssh-scp.sh')
-rw-r--r-- | jenkins-builds/promote-to-release-ssh-scp.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/jenkins-builds/promote-to-release-ssh-scp.sh b/jenkins-builds/promote-to-release-ssh-scp.sh new file mode 100644 index 0000000..72a0660 --- /dev/null +++ b/jenkins-builds/promote-to-release-ssh-scp.sh @@ -0,0 +1,24 @@ +#! /bin/bash + +version=v2.4.0-rc-20200104 +rootdir=/srv/www/jogamp.org/deployment +adir=archive/master/gluegen_930-joal_652-jogl_1493-jocl_1137 +sdir=archive/rc +urlb=https://jogamp.org/deployment + +ssh [email protected] "rm -rf jogamp-scripting; mkdir jogamp-scripting" +scp -rp jenkins-builds deployment [email protected]:jogamp-scripting/ + +ssh [email protected] "\ + cd jogamp-scripting ; \ + git status ; \ + ./jenkins-builds/promote-to-release.sh \ + $version \ + $rootdir \ + $adir $sdir $urlb ; \ +" + +scp [email protected]:$rootdir/$sdir/$version/sha512sum.txt . +gpg --output sha512sum.txt.sig --detach-sig sha512sum.txt +gpg --verify sha512sum.txt.sig sha512sum.txt && \ +scp sha512sum.txt.sig [email protected]:$rootdir/$sdir/$version/ |