23.4.2025 Wednesday 18:44

This commit is contained in:
Petr Nyc
2025-04-23 18:44:08 +02:00
parent 89369e066d
commit ad8fffcec7
3 changed files with 18 additions and 3 deletions

View File

@@ -5,13 +5,17 @@
BINDIR=$(dirname "$PRG")
typeset -r BINDIR
W3M=/opt/homebrew/bin/w3m
AWK=/usr/bin/awk
CURL=/usr/bin/curl
source "${BINDIR}/lib/logging.sh"
TARGET="${1-11.4.81.0.1.195.1}"
URL="http://grt.us.oracle.com/grt/webservice/grtList/?gate=20&show=All&gateName=S11.4-SRU&status=1&target=${TARGET}"
out=$(w3m "$URL" -M -cols 400 -graph -dump | awk '/^Details/ {found=1; next} found && NF')
out=$($W3M "$URL" -M -cols 400 -graph -dump | $AWK '/^Details/ {found=1; next} found && NF')
if [[ -z "$out" ]];
then
@@ -32,7 +36,7 @@ JOB_URL="${JENKINS_SERVER}/job/Solaris_11/job/11.4/job/userland-sru/job/userland
log::info "Using '${JOB_URL}'"
curl -X POST "${JOB_URL}" \
$CURL -X POST "${JOB_URL}" \
--user "pnyc:${JENKINS_TOKEN}" \
--data-urlencode "Build_Label=${TARGET}" \
--data-urlencode "hguser=petr.nyc@oracle.com" \