Does Docker Slave Plugin support Pipeline Maven Integration Plugin?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Does Docker Slave Plugin support Pipeline Maven Integration Plugin?

Sandra Parsick

Hi all,

currently, I try building a Jenkins pipeline with the Docker Slave Plugin and the Pipeline Maven Integration Plugin.

My idea is that the Maven builds run inside a Docker container (enabled by Docker Slave Plugin) and I'd like to configure Maven with the Pipeline Maven Integration Plugin. My pipeline script looks like the following one.

pipeline {
  agent any

  stages {
    stage ("build") {
      steps {
          dockerNode(image: 'reg/maven-build-container:latest', sideContainers: ['reg/postgres_build:latest']) {
              git branch: env.BRANCH_NAME, credentialsId: 'jenkins-gitlab', poll: false, url: 'http://git-url.git'
              withMaven(globalMavenSettingsConfig: '202cbecc-d109-4d9a-b2ea-10f10d1b90f4', jdk: 'JDK8_Docker', maven: 'Maven_Docker') {
                sh "mvn deploy -DdeployAtEnd=true"
              }

          }


      }
    }
  }
}



A multibranch-pipline-job executes this script.

Unfortunality, the build fails with

[Pipeline] withMaven
[withMaven] Options: []
[withMaven] Available options:
[withMaven] use JDK installation JDK8_Docker
Unpacking https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.3.9/apache-maven-3.3.9-bin.zip to /home/jenkins/tools/hudson.tasks.Maven_MavenInstallation/Maven_Docker on Container for Test-BP-Backend_feature_build » feature%2FBP-693 #9.14
[withMaven] use Maven installation 'Maven_Docker'
[withMaven] use Maven global settings provided by the Jenkins Managed Configuration File '202cbecc-d109-4d9a-b2ea-10f10d1b90f4'
[withMaven] use Maven global settings.xml '202cbecc-d109-4d9a-b2ea-10f10d1b90f4' with NO Maven servers credentials provided by Jenkins
[Pipeline] {
[Pipeline] sh
[eature_build_feature_BP-693-SIDHF47ZCQKUGCT2KJWECGHMTN5X5SPJD2DKKENGCWWDU74OWSXA] Running shell script
env
: nohup: No such file or directory
[Pipeline] }
[Pipeline] // withMaven
[Pipeline] }
[Pipeline] // dockerNode
[Pipeline] }
[Pipeline] // stage

Is it possble, that withMaven inside of dockerNode isn't supported?

I'm pleased about each hints.

Best regards,

Sandra

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/5ecc30a2-0d5a-4919-9c0c-97e6a494655c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Does Docker Slave Plugin support Pipeline Maven Integration Plugin?

nicolas de loof-2
I can't tell, best to give it a try and report any issue you encounter doing this.

Le 2 nov. 2017 1:41 PM, "'Sandra Parsick' via Jenkins Users" <[hidden email]> a écrit :

...

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CANMVJzmD02Uj56Jgdn_PU-vz-vPtP7M3FE-dWFudDCjon4mFXA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Does Docker Slave Plugin support Pipeline Maven Integration Plugin?

Dan Tran

it is fixed at https://issues.jenkins-ci.org/browse/JENKINS-40484 

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/b7fde7c2-04af-4fed-8624-bc9d54a59795%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Does Docker Slave Plugin support Pipeline Maven Integration Plugin?

Sandra Parsick
Thank you for your hint.

Am Freitag, 3. November 2017 13:28:36 UTC+1 schrieb Dan Tran:

it is fixed at <a href="https://issues.jenkins-ci.org/browse/JENKINS-40484" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fissues.jenkins-ci.org%2Fbrowse%2FJENKINS-40484\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEn3Rn5IpnKTWFwShHcNbd1NJknAA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fissues.jenkins-ci.org%2Fbrowse%2FJENKINS-40484\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEn3Rn5IpnKTWFwShHcNbd1NJknAA&#39;;return true;">https://issues.jenkins-ci.org/browse/JENKINS-40484 

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/0d3fc222-4cb2-4bbd-8220-c6652db8fd90%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.