Skip to content

Commit 600c494

Browse files
authored
Merge pull request #5 from rh-openjdk/s2i_fix
[OPENJDK-2807]Update testlib for chance issue with 1001 showing up in the container id hash.
2 parents eb1d6a2 + 2549276 commit 600c494

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

containersQa/testlib.bash

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -534,14 +534,14 @@ function s2iLocal() {
534534
# defined in the calling function if it is attempting to build a Jenkins plug-in.
535535
if [[ "$JENKINS_BUILD" == "yes" ]] ; then
536536
# copy the jenkins settings file to the local tmp directory
537-
$s2iBin build -e "$MAIN" -e "$ARGS" -e "$SETTING_ARGS" "$REPO" "$HASH" "$NAME" --as-dockerfile $DF.orig
537+
$s2iBin build -e "$MAIN" -e "$ARGS" -e "$SETTING_ARGS" "$REPO" "$HASH" "$NAME" --assemble-user $USERNAME --as-dockerfile $DF.orig
538538
cp $LIBCQA_SCRIPT_DIR/jenkins_settings.xml upload/src
539539
else
540-
$s2iBin build -e "$MAIN" -e "$ARGS" "$REPO" "$HASH" "$NAME" --as-dockerfile $DF.orig
540+
$s2iBin build -e "$MAIN" -e "$ARGS" "$REPO" "$HASH" "$NAME" --assemble-user $USERNAME --as-dockerfile $DF.orig
541541
fi
542542
if [ "x$OVERWRITE_USER" == x ] ; then
543543
#update the container file for proper functionality
544-
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
544+
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
545545
else
546546
cat $DF.orig | sed "s;/s2i/run;/s2i/run $ADDS;g;" > $DF.nw1
547547
fi

0 commit comments

Comments
 (0)