From d156ee954a00b4bc43a6064402b4d100772bba2d Mon Sep 17 00:00:00 2001 From: akastijn Date: Sat, 28 Jun 2025 02:54:15 +0200 Subject: [PATCH] Pass Nexus snapshot credentials to Gradle build in Jenkinsfile --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 54966ac..41ce404 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,7 +3,7 @@ pipeline { stages { stage('Gradle') { steps { - sh './gradlew build' + sh './gradlew build -PalttdSnapshotUsername=$NEXUS_CREDS_USR -PalttdSnapshotPassword=$NEXUS_CREDS_PSW' } } stage('Archive') { @@ -17,4 +17,4 @@ pipeline { } } } -} \ No newline at end of file +}