We use a declarative pipeline, the latest Jenkins. The build is performed in a docker subordinate container that has maven and other tools. Our current Jenkinsfile resembles this:
stage('build') { steps { sh 'mvn clean install'} }
stage('test') { }
stage('publish') {
steps {
}
}
In classic Jenkins mode, there is a Maven integration plugin that contains the section "Deploy artifacts to the Maven repository", in which Maven RedeployPublisher uses only artifact publications. I am looking for the pipeline equivalent of this, I thought that maven-pipe-plugin does this, but cannot find an example. Any pointers appreciated!
source
share