File tree Expand file tree Collapse file tree 3 files changed +0
-39
lines changed Expand file tree Collapse file tree 3 files changed +0
-39
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,6 @@ pipeline {
17
17
environment {
18
18
github_url = "${env.GIT_URL}"
19
19
github_creds = 'ecnj_github'
20
- dockerhub_username_creds = 'docker-username'
21
- dockerhub_password_creds = 'docker-password'
22
20
ocr_username_creds = 'OCR username'
23
21
ocr_password_creds = 'OCR Password'
24
22
ocir_registry_creds = 'ocir-server'
276
274
}
277
275
278
276
stage('Build WebLogic Kubernetes Operator') {
279
- environment {
280
- DOCKERHUB_USERNAME = credentials("${dockerhub_username_creds}")
281
- DOCKERHUB_PASSWORD = credentials("${dockerhub_password_creds}")
282
- }
283
277
steps {
284
- sh 'echo ${DOCKERHUB_PASSWORD} | docker login -u ${DOCKERHUB_USERNAME} --password-stdin'
285
278
sh "mvn -DtrimStackTrace=false clean install"
286
279
}
287
280
}
438
431
TEST_IMAGES_REPO_USERNAME = credentials("${ocir_username_creds}")
439
432
TEST_IMAGES_REPO_PASSWORD = credentials("${ocir_password_creds}")
440
433
TEST_IMAGES_REPO_EMAIL = credentials("${ocir_email_creds}")
441
- DOCKER_USERNAME = credentials("${dockerhub_username_creds}")
442
- DOCKER_PASSWORD = credentials("${dockerhub_password_creds}")
443
434
compartment_ocid = credentials("${weblogick8s_qa_compartment_ocid}")
444
435
DOMAIN_IMAGES_REPO = "phx.ocir.io"
445
436
BASE_IMAGES_REPO = "phx.ocir.io"
Original file line number Diff line number Diff line change @@ -49,19 +49,6 @@ function checkJavaVersion {
49
49
exit 1
50
50
fi
51
51
}
52
- function repoLogin {
53
- echo " Info: about to do ${WLSIMG_BUILDER:- docker} login"
54
- if [ ! -z ${DOCKER_USERNAME+x} ] && [ ! -z ${DOCKER_PASSWORD+x} ]; then
55
- out=$( echo $DOCKER_PASSWORD | ${WLSIMG_BUILDER:- docker} login -u $DOCKER_USERNAME --password-stdin)
56
- res=$?
57
- if [ $res -ne 0 ]; then
58
- echo " ${WLSIMG_BUILDER:- docker} login failed"
59
- exit 1
60
- fi
61
- else
62
- echo " Info: Credentials DOCKER_USERNAME and DOCKER_PASSWORD are not set."
63
- fi
64
- }
65
52
66
53
# Record start time in a format appropriate for journalctl --since
67
54
start_time=$( date +" %Y-%m-%d %H:%M:%S" )
@@ -125,8 +112,6 @@ ulimit -a
125
112
echo " Info: hard limits"
126
113
ulimit -aH
127
114
128
- repoLogin
129
-
130
115
mkdir $WORKSPACE /jdk
131
116
cd $WORKSPACE /jdk
132
117
wget https://download.oracle.com/java/17/archive/jdk-17.0.5_linux-x64_bin.tar.gz
Original file line number Diff line number Diff line change @@ -32,20 +32,6 @@ usage() {
32
32
exit $1
33
33
}
34
34
35
- repoLogin () {
36
- echo " Info: about to do ${WLSIMG_BUILDER:- docker} login"
37
- if [ ! -z ${DOCKER_USERNAME+x} ] && [ ! -z ${DOCKER_PASSWORD+x} ]; then
38
- out=$( echo $DOCKER_PASSWORD | ${WLSIMG_BUILDER:- docker} login -u $DOCKER_USERNAME --password-stdin)
39
- res=$?
40
- if [ $res -ne 0 ]; then
41
- echo " ${WLSIMG_BUILDER:- docker} login failed"
42
- exit 1
43
- fi
44
- else
45
- echo " Info: Image repo credentials DOCKER_USERNAME and DOCKER_PASSWORD are not set."
46
- fi
47
- }
48
-
49
35
k8s_version=" 1.21"
50
36
51
37
KUBERNETES_CLI=${KUBERNETES_CLI:- kubectl}
@@ -150,7 +136,6 @@ ${KUBERNETES_CLI} get clusterrolebindings --no-headers | awk '/traefik-/{print $
150
136
151
137
sudo rm -rf ${PV_ROOT} /*
152
138
153
- repoLogin
154
139
export OKD=true
155
140
156
141
echo " ${WLSIMG_BUILDER:- docker} info"
You can’t perform that action at this time.
0 commit comments