Skip to content

Commit

Permalink
[OPENJDK-2807]Update testlib for chance issue with 1001 showing up in…
Browse files Browse the repository at this point in the history
… the hash.
  • Loading branch information
sefroberg committed Feb 28, 2024
1 parent eb1d6a2 commit 2549276
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions containersQa/testlib.bash
Original file line number Diff line number Diff line change
Expand Up @@ -534,14 +534,14 @@ function s2iLocal() {
# defined in the calling function if it is attempting to build a Jenkins plug-in.
if [[ "$JENKINS_BUILD" == "yes" ]] ; then
# copy the jenkins settings file to the local tmp directory
$s2iBin build -e "$MAIN" -e "$ARGS" -e "$SETTING_ARGS" "$REPO" "$HASH" "$NAME" --as-dockerfile $DF.orig
$s2iBin build -e "$MAIN" -e "$ARGS" -e "$SETTING_ARGS" "$REPO" "$HASH" "$NAME" --assemble-user $USERNAME --as-dockerfile $DF.orig
cp $LIBCQA_SCRIPT_DIR/jenkins_settings.xml upload/src
else
$s2iBin build -e "$MAIN" -e "$ARGS" "$REPO" "$HASH" "$NAME" --as-dockerfile $DF.orig
$s2iBin build -e "$MAIN" -e "$ARGS" "$REPO" "$HASH" "$NAME" --assemble-user $USERNAME --as-dockerfile $DF.orig
fi
if [ "x$OVERWRITE_USER" == x ] ; then
#update the container file for proper functionality
cat $DF.orig | sed "s;/usr/libexec;/usr/local;g" | sed "s;1001:0;$USERNAME:$USERNAME;g" | sed "s;1001;$USERNAME;g" | sed "s;/s2i/run;/s2i/run $ADDS;g;" > $DF.nw1
cat $DF.orig | sed "s;/usr/libexec;/usr/local;g" | sed "s;1001:0;$USERNAME:$USERNAME;g" | sed "s;/s2i/run;/s2i/run $ADDS;g;" > $DF.nw1
else
cat $DF.orig | sed "s;/s2i/run;/s2i/run $ADDS;g;" > $DF.nw1
fi
Expand Down

0 comments on commit 2549276

Please sign in to comment.