Skip to content

Commit 120e7d3

Browse files
committed
remove OCR_EMAIL
1 parent 813e5bb commit 120e7d3

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

integration-tests/src/test/resources/setupenv.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,21 +76,20 @@ function clean_shared_cluster {
7676
function pull_tag_images {
7777

7878
set +x
79-
if [ -z "$OCR_USERNAME" ] || [ -z "$OCR_PASSWORD" ] || [ -z "$OCR_EMAIL" ]; then
79+
if [ -z "$OCR_USERNAME" ] || [ -z "$OCR_PASSWORD" ]; then
8080
if [ -z $(docker images -q $IMAGE_NAME_WEBLOGIC:$IMAGE_TAG_WEBLOGIC) ]; then
81-
echo "Image $IMAGE_NAME_WEBLOGIC:$IMAGE_TAG_WEBLOGIC doesn't exist. Provide Docker login details using env variables OCR_USERNAME, OCR_PASSWORD and OCR_EMAIL to pull the image."
81+
echo "Image $IMAGE_NAME_WEBLOGIC:$IMAGE_TAG_WEBLOGIC doesn't exist. Provide Docker login details using env variables OCR_USERNAME and OCR_PASSWORD to pull the image."
8282
exit 1
8383
fi
8484
fi
8585

86-
if [ -n "$OCR_USERNAME" ] && [ -n "$OCR_PASSWORD" ] && [ -n "$OCR_EMAIL" ]; then
86+
if [ -n "$OCR_USERNAME" ] && [ -n "$OCR_PASSWORD" ]; then
8787
echo "Creating Docker Secret"
8888

8989
kubectl create secret docker-registry $IMAGE_PULL_SECRET_WEBLOGIC \
9090
--docker-server=${WL_DOCKER_SERVER}/ \
9191
--docker-username=$OCR_USERNAME \
92-
--docker-password=$OCR_PASSWORD \
93-
--docker-email=$OCR_EMAIL
92+
--docker-password=$OCR_PASSWORD
9493

9594
echo "Checking Secret"
9695
SECRET="`kubectl get secret $IMAGE_PULL_SECRET_WEBLOGIC | grep $IMAGE_PULL_SECRET_WEBLOGIC | wc | awk ' { print $1; }'`"

0 commit comments

Comments
 (0)