test number who knows

This commit is contained in:
nossr50
2025-12-14 13:31:21 -08:00
parent 2f452afdc7
commit 257292b6cc

17
Jenkinsfile vendored
View File

@@ -25,22 +25,11 @@ pipeline {
}
}
stage('Deploy to Nexus') {
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
'''
configFileProvider([configFile(fileId: 'maven-settings-nexus', variable: 'MAVEN_SETTINGS')]) {
sh 'mvn -s "$MAVEN_SETTINGS" -V -B deploy'
}
}
}