"pipeline {
agent {
label 'masterLin&&sbel8'
}
tools {
jdk 'sberjdk-21'
maven 'Maven 3.6.3'
}
options {
timestamps()
timeout(time: 1, unit: 'HOURS')
ansiColor('xterm')
buildDiscarder(logRotator(artifactDaysToKeepStr: '7', artifactNumToKeepStr: '20', daysToKeepStr: '7', numToKeepStr: '50'))
disableConcurrentBuilds()
}
stages {
stage('Build') {
steps {
withMaven(mavenSettingsConfig: 'maven-draft-settings', traceability: false) {
sh 'mvn clean install -DskipTests'
}
}
}
}
post {
always {
allure(commandline: 'allure-2.32',
includeProperties: false,
jdk: '',
results: [[path: 'target/allure-results']])
}
cleanup {
cleanWs(cleanWhenNotBuilt: false,
deleteDirs: true,
disableDeferredWipeout: true,
notFailBuild: true)
}
}
}
" "ERROR: Could not find the Maven settings.xml config file id:maven-draft-settings. Make sure it exists on Managed Files" явно не туда смотрим settings.xml. мне кажется там уже должны быть какие то токены зашиты еще девопсами