Skip to content

Commit 0864c23

Browse files
committed
Merge branch 'weeklyjob' into 'main'
Set build description for weekly job See merge request weblogic-cloud/weblogic-kubernetes-operator!4248
2 parents 8bc386a + 80cd68b commit 0864c23

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

Jenkinsfile.kindnightly

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ pipeline {
108108
defaultValue: 'main'
109109
)
110110
choice(name: 'MAVEN_PROFILE_NAME',
111-
description: 'Profile to use in mvn command to run the tests. Possible values are kind-sequential (the default), kind-parallel and integration-tests. Refer to weblogic-kubernetes-operator/integration-tests/pom.xml on the branch.',
111+
description: 'Profile to use in mvn command to run the tests. Possible values are kind-parallel (the default), kind-sequential and integration-tests. Refer to weblogic-kubernetes-operator/integration-tests/pom.xml on the branch.',
112112
choices: [
113-
'kind-sequential',
114113
'kind-parallel',
114+
'kind-sequential',
115115
'integration-tests',
116116
'toolkits-srg',
117117
'wls-srg'
@@ -250,7 +250,7 @@ pipeline {
250250
)
251251
string(name: 'PROMETHEUS_CHART_VERSION',
252252
description: '',
253-
defaultValue: '15.2.0'
253+
defaultValue: '17.0.0'
254254
)
255255
string(name: 'GRAFANA_CHART_VERSION',
256256
description: '',
@@ -486,7 +486,11 @@ EOF
486486
}
487487
steps {
488488
script {
489-
currentBuild.description = "${GIT_BRANCH} ${MAVEN_PROFILE_NAME}"
489+
if (env.JOB_NAME == 'wko-kind-weekly') {
490+
currentBuild.description = "${WEBLOGIC_IMAGE_NAME}:${WEBLOGIC_IMAGE_TAG}"
491+
} else {
492+
currentBuild.description = "${GIT_BRANCH} ${MAVEN_PROFILE_NAME}"
493+
}
490494
def res = 0
491495
res = sh(script: '''
492496
if [ -z "${IT_TEST}" ] && [ "${MAVEN_PROFILE_NAME}" = "integration-tests" ]; then
@@ -520,8 +524,6 @@ EOF
520524
PARALLEL_RUN='false'
521525
fi
522526
if [ -n "${IT_TEST}" ]; then
523-
echo 'Overriding MAVEN_PROFILE_NAME to integration-test when running individual test(s)'
524-
MAVEN_PROFILE_NAME="integration-tests"
525527
echo "-Dit.test=\"${IT_TEST}\"" > ${WORKSPACE}/.mvn/maven.config
526528
fi
527529
echo "-Dwko.it.wle.download.url=\"${wle_download_url}\"" >> ${WORKSPACE}/.mvn/maven.config
@@ -568,6 +570,10 @@ EOF
568570
export TEST_IMAGES_REPO_USERNAME="${OCIR_USER}"
569571
export TEST_IMAGES_REPO_PASSWORD="${OCIR_PASS}"
570572
export TEST_IMAGES_REPO_EMAIL="[email protected]"
573+
if [ -n "${IT_TEST}" ]; then
574+
echo 'Overriding MAVEN_PROFILE_NAME to integration-test when running individual test(s)'
575+
export MAVEN_PROFILE_NAME="integration-tests"
576+
fi
571577
if ! time mvn -pl integration-tests -P ${MAVEN_PROFILE_NAME} verify 2>&1 | tee "${result_root}/kindtest.log"; then
572578
echo "integration-tests failed"
573579
exit 1

0 commit comments

Comments
 (0)