diff --git a/jenkins/build.sh b/jenkins/build.sh index 1e24d03b97..5764be8488 100755 --- a/jenkins/build.sh +++ b/jenkins/build.sh @@ -15,7 +15,7 @@ if grep -q "opm-common=" <<< $ghprbCommentBody then if test -n "$absolute_revisions" then - upstreamRev[opm-common]=$(echo $ghprbCommentBody | sed -r 's/.*opm-common=([^ ]+)/\1/g') + upstreamRev[opm-common]=$(echo $ghprbCommentBody | sed -r 's/.*opm-common=([^ ]+).*/\1/g') else upstreamRev[opm-common]=pull/$(echo $ghprbCommentBody | sed -r 's/.*opm-common=([0-9]+).*/\1/g')/merge fi