From 257292b6cc9ff120779f30bba968943fbbdf62c5 Mon Sep 17 00:00:00 2001 From: nossr50 Date: Sun, 14 Dec 2025 13:31:21 -0800 Subject: [PATCH] test number who knows --- Jenkinsfile | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5f110cae8..f3b4bd3ad 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -26,21 +26,10 @@ pipeline { } stage('Deploy to Nexus') { - steps { - withCredentials([usernamePassword( - credentialsId: 'nexus-deployer', - usernameVariable: 'NEXUS_USER', - passwordVariable: 'NEXUS_PASS' - )]) { - configFileProvider([configFile(fileId: 'maven-settings-nexus', variable: 'MAVEN_SETTINGS_TEMPLATE')]) { - sh ''' - # Expand env vars into a real settings file - envsubst < "$MAVEN_SETTINGS_TEMPLATE" > settings.xml - - mvn -s settings.xml -V -B deploy - - rm -f settings.xml - ''' + stage('Deploy to Nexus') { + steps { + configFileProvider([configFile(fileId: 'maven-settings-nexus', variable: 'MAVEN_SETTINGS')]) { + sh 'mvn -s "$MAVEN_SETTINGS" -V -B deploy' } } }