Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cbi-dev] Pipeline as a code questions.

Greetings all:

 

I’m trying to create a multibranch pipeline build job for the keti project.

 

I have a created a Jenkins file following the example provided. It is currently failing because it can’t find the “withMaven” command, assuming it’s not enabled or installed.  Is there anywhere to resolve this issue?

 

 

                                                                wrap([$class: 'Xvnc', useXauthority: true]) {

                                                                                withEnv(["PATH+NODE=/shared/common/node-v7.10.0-linux-x64/bin", "PATH+DOTNET=/shared/common/dotnet-sdk-2.0.0-linux-x64"]) {

                                                                                                withMaven(maven: 'apache-maven-latest', jdk: 'jdk1.8.0-latest') {

                                                                                                                sh 'cd keti && mvn clean install -P public-graph'

                                                                                                }

                                                                                }

                                                                }

I have other questions:

 

What is the purpose of setting the the node env variable? Are there any other possible values?

 

PATH+NODE=/shared/common/node-v7.10.0-linux-x64/bin

 

Also, I would like to know what is the purpose of using the vnc plugin?  the example doesn’t seem to be doing any sort of ui testing.

 

Thank you for your time!

 

Best Regards

 

Sebastian Torres Brown

 

 

 


Back to the top