You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sh './gradlew clean check --no-daemon --stacktrace'
22
+
withCredentials([ARTIFACTORY_CREDENTIALS]) {
23
+
withEnv(["JAVA_HOME=${tool 'jdk8'}"]) {
24
+
sh './gradlew clean check -PartifactoryUsername=$ARTIFACTORY_USERNAME -PartifactoryPassword=$ARTIFACTORY_PASSWORD --no-daemon --stacktrace'
25
+
}
22
26
}
23
27
}
24
28
catch (e) {
@@ -39,8 +43,10 @@ try {
39
43
checkout scm
40
44
sh "git clean -dfx"
41
45
try {
42
-
withEnv(["JAVA_HOME=${tool 'jdk11'}"]) {
43
-
sh './gradlew clean test integrationTest --no-daemon --stacktrace'
46
+
withCredentials([ARTIFACTORY_CREDENTIALS]) {
47
+
withEnv(["JAVA_HOME=${tool 'jdk11'}"]) {
48
+
sh './gradlew clean test integrationTest -PartifactoryUsername=$ARTIFACTORY_USERNAME -PartifactoryPassword=$ARTIFACTORY_PASSWORD --no-daemon --stacktrace'
49
+
}
44
50
}
45
51
}
46
52
catch (e) {
@@ -57,8 +63,10 @@ try {
57
63
node('linux') {
58
64
checkout scm
59
65
try {
60
-
withEnv(["JAVA_HOME=${tool 'openjdk12'}"]) {
61
-
sh './gradlew clean test integrationTest --no-daemon --stacktrace'
66
+
withCredentials([ARTIFACTORY_CREDENTIALS]) {
67
+
withEnv(["JAVA_HOME=${tool 'openjdk12'}"]) {
68
+
sh './gradlew clean test integrationTest -PartifactoryUsername=$ARTIFACTORY_USERNAME -PartifactoryPassword=$ARTIFACTORY_PASSWORD --no-daemon --stacktrace'
0 commit comments