Re: @Whitelist pipeline from multibranch project or allow out of sandbox

2019-03-21 Thread Mark Waite
On Thu, Mar 21, 2019 at 12:20 PM Guybrush Threepwood wrote: > OMG!!! > Thank your verry much for your answer. > I definitelly need to go back to the pipelines fundamentals training looks > like I missed a lot there. > > *The general guiding principle is to place as much of the pipeline work as >

Re: Pipeline-Maven-Plugin when current build status is UNSTABLE

2019-03-21 Thread Benjamin Tocquec
Finally found the mistake/solution: my Sonar Stage was in a separated node. Groupingg every stages in same node solved my issue. Thanks Le jeudi 21 mars 2019 18:59:38 UTC+1, Benjamin Tocquec a écrit : > > Hi, > > Here is my context. > I have a pipeline with main steps: > >- mvn clean deploy

Re: Tagging code in a pipeline?

2019-03-21 Thread Mark Waite
Is the repository URL an ssh URL? If not, then sshagent won't help. The ssh agent does not do http or https On Thu, Mar 21, 2019 at 12:51 PM Robert Nicholson < robert.nichol...@gmail.com> wrote: > I am able to tag the code locally but the push with credentials key based > seems to be an issue.

Tagging code in a pipeline?

2019-03-21 Thread Robert Nicholson
I am able to tag the code locally but the push with credentials key based seems to be an issue. sshagent([‘credentialsKey]) { sh “git push origin master —tags” } this step errors with fatal: could not read Username for ‘repository hostname’ : No such device or address Prior in my pipeline

Re: @Whitelist pipeline from multibranch project or allow out of sandbox

2019-03-21 Thread Guybrush Threepwood
OMG!!! Thank your verry much for your answer. I definitelly need to go back to the pipelines fundamentals training looks like I missed a lot there. *The general guiding principle is to place as much of the pipeline work as possible inside scripts that are called by the sh step or the bat step

Pipeline-Maven-Plugin when current build status is UNSTABLE

2019-03-21 Thread Benjamin Tocquec
Hi, Here is my context. I have a pipeline with main steps: - mvn clean deploy - mvn test - sonar quality gate I choose to set currentBuild.result = 'UNSTABLE' if last step (quality gate from Sonar) is not OK. I want my dependencies to build automatically downstream projects when

Re: @Whitelist pipeline from multibranch project or allow out of sandbox

2019-03-21 Thread Mark Waite
On Thu, Mar 21, 2019 at 3:01 AM Guybrush Threepwood wrote: > > Thank you for your answer, > I will try that Actually I'm not trying to only delete the directory but > to create/clean it up. > > I was using the File just beacuseI might have landed to the wrong google > page :-) > I'm verry new to

Re: Wrong output on .../job/*/maven

2019-03-21 Thread Cyrille Le Clerc
>> Please see new FAQ entry https://wiki.jenkins.io/display/JENKINS/Pipeline+Maven+Plugin#PipelineMavenPlugin-HowcanItroubleshootproblemsoftriggerofdownstreampipelines I have improved the FAQ entry based on your feedback, can you please have a look? > I had to add a "Pipeline Graph

Re: @Whitelist pipeline from multibranch project or allow out of sandbox

2019-03-21 Thread Guybrush Threepwood
Thank you for your answer, I will try that Actually I'm not trying to only delete the directory but to create/clean it up. I was using the File just beacuseI might have landed to the wrong google page :-) I'm verry new to Jenkins and pipelines and I always want to do complicated things. I