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
// Set agent to start with new workspace to avoid Gradle compile issues on shared workspace
74
+
agent {
75
+
label 'java'
76
+
}
77
+
environment {
78
+
TEST_JDK="${TEST_JDK}"
79
+
}
80
+
steps {
81
+
// "|| true" for an OK exit code if no file is found
82
+
sh 'rm tests/objectbox-java-test/hs_err_pid*.log || true'
83
+
// Note: do not run check task as it includes SpotBugs.
84
+
sh "./ci/test-with-asan.sh $gradleArgs$gitlabRepoArgs clean :tests:objectbox-java-test:test"
85
+
}
86
+
post {
87
+
always {
88
+
junit '**/build/test-results/**/TEST-*.xml'
89
+
archiveArtifacts artifacts: 'tests/*/hs_err_pid*.log', allowEmptyArchive: true// Only on JVM crash.
90
+
}
91
+
}
92
+
}
93
+
}
54
94
}
55
95
}
56
96
57
97
stage('upload-to-internal') {
58
98
steps {
59
-
sh "./gradlew $gradleArgs$gitlabRepoArgs -PversionPostFix=$versionPostfix publishMavenJavaPublicationToGitLabRepository"
99
+
sh "./gradlew $gradleArgs$signingArgs$gitlabRepoArgs -PversionPostFix=$versionPostfix publishMavenJavaPublicationToGitLabRepository"
60
100
}
61
101
}
62
102
@@ -70,7 +110,7 @@ pipeline {
70
110
message: "*Publishing* ${currentBuild.fullDisplayName} to Central...\n${env.BUILD_URL}"
71
111
72
112
// Note: supply internal repo as tests use native dependencies that might not be published, yet.
73
-
sh "./gradlew $gradleArgs$gitlabRepoArgs$uploadRepoArgsCentral publishMavenJavaPublicationToSonatypeRepository closeAndReleaseStagingRepository"
113
+
sh "./gradlew $gradleArgs$signingArgs$gitlabRepoArgs$uploadRepoArgsCentral publishMavenJavaPublicationToSonatypeRepository closeAndReleaseStagingRepository"
74
114
75
115
googlechatnotification url: 'id:gchat_java',
76
116
message: "Published ${currentBuild.fullDisplayName} successfully to Central - check https://repo1.maven.org/maven2/io/objectbox/ in a few minutes.\n${env.BUILD_URL}"
@@ -82,10 +122,6 @@ pipeline {
82
122
// For global vars see /jenkins/pipeline-syntax/globals
83
123
post {
84
124
always {
85
-
junit '**/build/test-results/**/TEST-*.xml'
86
-
archiveArtifacts artifacts: 'tests/*/hs_err_pid*.log', allowEmptyArchive: true// Only on JVM crash.
0 commit comments