You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kafka.apache.org by bb...@apache.org on 2020/10/08 19:15:42 UTC
[kafka] 04/31: ST-3402: Fix to get artifactory settings for preview
release builds (#364)
This is an automated email from the ASF dual-hosted git repository.
bbejeck pushed a commit to branch Merge_AK_to_CCS_10_08_2020
in repository https://gitbox.apache.org/repos/asf/kafka.git
commit beb3fd9e9ce4cc6f0783d6af69db5e00a67388c1
Author: elismaga <el...@confluent.io>
AuthorDate: Fri Jul 17 12:06:37 2020 -0700
ST-3402: Fix to get artifactory settings for preview release builds (#364)
---
Jenkinsfile | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 80a546b..834837c 100755
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -33,8 +33,8 @@ def retryFlagsString(jobConfig) {
}
def downstreamBuildFailureOutput = ""
-def publishStep(String configSettings) {
- withVaultFile([["gradle/artifactory_snapshots_settings", "settings_file", "${env.WORKSPACE}/init.gradle", "GRADLE_NEXUS_SETTINGS"]]) {
+def publishStep(String vaultSecret) {
+ withVaultFile([["gradle/${vaultSecret}", "settings_file", "${env.WORKSPACE}/init.gradle", "GRADLE_NEXUS_SETTINGS"]]) {
sh "./gradlewAll --init-script ${GRADLE_NEXUS_SETTINGS} --no-daemon uploadArchives"
}
}
@@ -62,9 +62,9 @@ def job = {
if (config.publish) {
stage("Publish to artifactory") {
if (config.isDevJob) {
- publishStep('Gradle-Artifactory-Settings')
+ publishStep('artifactory_snapshots_settings')
} else if (config.isPreviewJob) {
- publishStep('Gradle-Artifactory-Preview-Release-Settings')
+ publishStep('artifactory_preview_release_settings')
}
}
}