From ab8addec293a1a5864dd9ff5986d12cdac709b62 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 1 Feb 2023 18:05:30 +0100 Subject: jenkins-builds/promote-to-release-ssh-git.sh: Add the maven make-all-jogamp.sh deployment step and log to file; Drop ssh-scp variant. --- jenkins-builds/promote-to-release-ssh-git.sh | 17 +++++++++++++++-- jenkins-builds/promote-to-release-ssh-scp.sh | 24 ------------------------ 2 files changed, 15 insertions(+), 26 deletions(-) delete mode 100644 jenkins-builds/promote-to-release-ssh-scp.sh (limited to 'jenkins-builds') diff --git a/jenkins-builds/promote-to-release-ssh-git.sh b/jenkins-builds/promote-to-release-ssh-git.sh index bde6a27..2faa349 100644 --- a/jenkins-builds/promote-to-release-ssh-git.sh +++ b/jenkins-builds/promote-to-release-ssh-git.sh @@ -1,11 +1,15 @@ #! /bin/bash -version=v2.4.0-rc-20200104 +version=v2.4.0-rc-20230201 rootdir=/srv/www/jogamp.org/deployment -adir=archive/master/gluegen_930-joal_652-jogl_1493-jocl_1137 +adir=archive/master/gluegen_951-joal_669-jogl_1518-jocl_1158 sdir=archive/rc urlb=https://jogamp.org/deployment +logfile=`basename $0 .sh`.log + +function deploy_it() { + ssh jogamp@jogamp.org "\ cd /home/jogamp/builds ; \ rm -rf jogamp-scripting ; \ @@ -22,3 +26,12 @@ scp jogamp@jogamp.org:$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 jogamp@jogamp.org:$rootdir/$sdir/$version/ + +ssh jogamp@jogamp.org "\ + cd /home/jogamp/builds/jogamp-scripting/maven ; \ + ./make-all-jogamp.sh $rootdir/$sdir/$version/archive/jogamp-all-platforms.7z $version ; \ +" + +} + +deploy_it 2>&1 | tee ${logfile} diff --git a/jenkins-builds/promote-to-release-ssh-scp.sh b/jenkins-builds/promote-to-release-ssh-scp.sh deleted file mode 100644 index 72a0660..0000000 --- a/jenkins-builds/promote-to-release-ssh-scp.sh +++ /dev/null @@ -1,24 +0,0 @@ -#! /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 jogamp@jogamp.org "rm -rf jogamp-scripting; mkdir jogamp-scripting" -scp -rp jenkins-builds deployment jogamp@jogamp.org:jogamp-scripting/ - -ssh jogamp@jogamp.org "\ - cd jogamp-scripting ; \ - git status ; \ - ./jenkins-builds/promote-to-release.sh \ - $version \ - $rootdir \ - $adir $sdir $urlb ; \ -" - -scp jogamp@jogamp.org:$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 jogamp@jogamp.org:$rootdir/$sdir/$version/ -- cgit v1.2.3