From a7e5a99e012e9581a5e98ed1bd4d76e5bf31e3eb Mon Sep 17 00:00:00 2001 From: akastijn Date: Fri, 27 Jun 2025 20:53:44 +0200 Subject: [PATCH] Pass Nexus credentials to Gradle build in Jenkins pipeline --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 93ec928..12b9477 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,7 +3,7 @@ pipeline { stages { stage('Gradle') { steps { - sh 'bash gradlew build' + sh './gradlew build -PalttdSnapshotUsername=$NEXUS_CREDS_USR -PalttdSnapshotPassword=$NEXUS_CREDS_PSW' } } stage('Archive') { @@ -23,4 +23,4 @@ pipeline { } } } -} \ No newline at end of file +}