This is an automated email from the git hooks/post-receive script. x2go pushed a change to branch master in repository buildscripts. from 6869b6a bin/signtarballs: actually try to go into the directory that we looked for. new ee56c74 bin: add new slave-start-connect.sh script, used to connect to local machines and kick-off chrooting. new c6d547b bin: add new slave-start-chroot.sh script, used to jump into the chroot and kick-off preparation script. new ad427f8 bin: add new slave-start-prepare.sh script, used to update build scripts, the jenkins jar file and start the latter. The 3 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Summary of changes: bin/slave-start-chroot.sh | 23 +++++++++++++++++++++++ bin/slave-start-connect.sh | 37 +++++++++++++++++++++++++++++++++++++ bin/slave-start-prepare.sh | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 96 insertions(+) create mode 100755 bin/slave-start-chroot.sh create mode 100755 bin/slave-start-connect.sh create mode 100755 bin/slave-start-prepare.sh -- Alioth's /srv/git/code.x2go.org/buildscripts.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/buildscripts.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository buildscripts. commit ee56c74f58f828cfc5e37ad8c5929180ea653457 Author: Mihai Moldovan <ionic@ionic.de> Date: Sat Jun 10 04:53:33 2017 +0200 bin: add new slave-start-connect.sh script, used to connect to local machines and kick-off chrooting. --- bin/slave-start-connect.sh | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/bin/slave-start-connect.sh b/bin/slave-start-connect.sh new file mode 100755 index 0000000..b791bf8 --- /dev/null +++ b/bin/slave-start-connect.sh @@ -0,0 +1,37 @@ +#!/bin/bash + +set -e + +typeset prefix="$(cut -d"-" -f1 <<< "$(basename "${0}")")" + +typeset host="${1:?"No valid host parameter provided."}" + +case "${host}" in + ("p7le") + host="osuosl-c7-le" + ;; + ("p7be") + host="osuosl-c7-be" + ;; + (*) + echo "Unknown host parameter provided." >&2 + exit 1 + ;; +esac + +typeset user="jenkins" + +# Can't have a "slave" prefix this way, but I guess it's fine. +if [ "x$(basename "${0}")" = "x${prefix}-slave-start-connect.sh" ]; then + case "${prefix}" in + (x2go) + user="x2go-jenkins" + ;; + (*) + echo "Invalid prefix. Aborting." >&2 + exit 1 + ;; + esac +fi + +ssh "${user}@${host}" "bin/${prefix}-slave-start-chroot.sh" -- Alioth's /srv/git/code.x2go.org/buildscripts.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/buildscripts.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository buildscripts. commit c6d547b73d220092367790ce56434c1bd06e0a7d Author: Mihai Moldovan <ionic@ionic.de> Date: Sat Jun 10 04:54:16 2017 +0200 bin: add new slave-start-chroot.sh script, used to jump into the chroot and kick-off preparation script. --- bin/slave-start-chroot.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/bin/slave-start-chroot.sh b/bin/slave-start-chroot.sh new file mode 100755 index 0000000..c547dfe --- /dev/null +++ b/bin/slave-start-chroot.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +set -e + +typeset prefix="$(cut -d"-" -f1 <<< "$(basename "${0}")")" + +typeset chroot_dir="" +if [ "x$(basename "${0}")" = "x${prefix}-slave-start-chroot.sh" ]; then + case "${prefix}" in + (x2go) + chroot="source:x2go" + ;; + (*) + echo "Unknown prefix, aborting." >&2 + exit 1 + ;; + esac +else + echo "No prefix provided. Aborting." >&2 + exit 1 +fi + +schroot -c "${chroot}" "bin/${prefix}-slave-start-prepare.sh" -- Alioth's /srv/git/code.x2go.org/buildscripts.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/buildscripts.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository buildscripts. commit ad427f89dfb7ea5346363bf0a3a169825573fb92 Author: Mihai Moldovan <ionic@ionic.de> Date: Sat Jun 10 04:55:52 2017 +0200 bin: add new slave-start-prepare.sh script, used to update build scripts, the jenkins jar file and start the latter. --- bin/slave-start-prepare.sh | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/bin/slave-start-prepare.sh b/bin/slave-start-prepare.sh new file mode 100755 index 0000000..c2c7f22 --- /dev/null +++ b/bin/slave-start-prepare.sh @@ -0,0 +1,36 @@ +#!/bin/bash + +set -e + +typeset prefix="$(cut -d"-" -f1 <<< "$(basename "${0}")")" + +# Generate this stuff via: +# - openssl s_client -showcerts -servername hostname -connect host:port +# - copy the first PEM-encoded certificate to ${cert} +# - add the "-----BEGIN CERTIFICATE-----" header and "-----END CERTIFICATE-----" footer to ${cert} +# - openssl x509 -noout -pubkey < "${cert}" | openssl asn1parse -noout -inform pem -out /dev/stdout | openssl dgst -sha256 -binary | openssl base64 +typeset ssl_hash="" +typeset host="" +if [ "x$(basename "${0}")" = "x${prefix}-slave-start-prepare.sh" ]; then + case "${prefix}" in + (x2go) + host="japsand.x2go.org:8443" + ssl_hash="sha256//47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=" + ;; + (*) + echo "Unknown prefix, aborting." >&2 + exit 1 + ;; + esac +else + echo "No prefix provided. Aborting." >&2 + exit 1 +fi + +"${HOME}/bin/slave-sync.sh" + +rm -f -- "slave.jar" + +wget -NS --pinnedpubkey="${ssl_hash}" "https://${host}/jnlpJars/slave.jar" + +java -jar "slave.jar" -- Alioth's /srv/git/code.x2go.org/buildscripts.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/buildscripts.git