Re: pipeline multi branch, how to continue if error occures

2016-09-12 Thread Sverre Moe
Either get return code from the executing shell script or surround with try-catch final def returnCode = sh returnStatus: true, script: "" if (returnCode != 0) { } try { sh "" } catch (e) { } tirsdag 13. september 2016 04.10.57 UTC+2 skrev R Tyler Croy følgende: > > (replies inline) > >

Re: pipeline multi branch, how to continue if error occures

2016-09-12 Thread R. Tyler Croy
(replies inline) On Mon, 12 Sep 2016, Klaus Rudolph wrote: > Hi all, > > if I use gtest in pipeline setup and have a unit test which fails the groovy > script stops. > > How can I tell the script that I want to continue so that I am able to see > the results from xunit/gtest plugin? > >

Re: warnings graph in multibranch pipeline projects

2016-09-12 Thread R. Tyler Croy
Moin Klaus! Klaus Rudolph schrieb am Monday, den 12. September 2016: > I started to migrate some jobs in jenkins to pipeline execution. > > Is there any chance to see the warnings graph in pipeline jobs? Within my > older projects I can configure the graphs with "Configure the trend graph" >

pipeline scheduling displays duplicate changes

2016-09-12 Thread tarocaravan
When I inspect my Jenkins pipeline job, I always see duplicate entries in the Changes view. It may be happening because: i) I have polling enabled, so that the job kicks off if there are any checkins with a time period ii) The pipeline job checks out the code on a build node and does a build

Powershell script runs fine locally, but when ran via Jenkins...

2016-09-12 Thread aaron . trujillo
As the title states, when i run this powershell script locally it runs just fine, but when i try to run it through as a Jenkins job it fails and says that the path can not be found because it does not exist, clearly the path exists as it can be ran locally. The code is as follows: > $FilePath

Re: [SECURITY] How to protect pipeline jobs using GitHub branch/PR auto-discovery from doing harm

2016-09-12 Thread jpd4nt
Not sure about docker in docker, but you can have a throw away VM slave to build the docker image - there are a number plugins to do this. > > Mmmm, OK, but we need to create docker images to run the jobs based on > what is in the repository we are fetching. Is it possible to run a > docker

Re: snipped generator for xunit google test

2016-09-12 Thread Liam Newman
First make sure you have the latest version of the xUnit plugin installed. Then, try looking under "step: General Build Step" and under "Build Step" see "Process xUnit test result report". On Monday, September 12, 2016 at 2:25:50 AM UTC-7, Klaus Rudolph wrote: > > Hi all, > > I want to

warnings graph in multibranch pipeline projects

2016-09-12 Thread Klaus Rudolph
I started to migrate some jobs in jenkins to pipeline execution. Is there any chance to see the warnings graph in pipeline jobs? Within my older projects I can configure the graphs with "Configure the trend graph" option. These option will crash in the pipeline syntax tool. Is there any option

Access Maven Metadata Plugin parameters in Jenkins pipeline Groovy script

2016-09-12 Thread kelemensanyi
Hi, How can I access the values of the parameters provided by "Maven Metadata Plugin" in the Jenkins pipeline Groovy script? I created a job with two parameters: Name Type - - SomeStrString Parameter SomeArtifact List maven

enkins Findbugs plugin graph not showing in jenkins server

2016-09-12 Thread Vineet Yadav
Hi Group Members, i need your help ,I successfully installed findbugs in my linux server but my findbugs graph are not shown in my dashboard. can you please help me on this . i am install using command line my findbugs is working but i am unable to see graph same i am also getting in PMD

Re: Jenkins Workspace

2016-09-12 Thread jerome
As stated above, it's the expected behavior. The workspace is used to build with - Jenkins/jobs/[jobname] - Jenkins/jobs/[jobname]@script (for pipeline Jenkinsfile script checkout) This is kind of a scratch space. You may want to clean that folder between build if you don't want

Re: Jenkins user shows with 'Red Stop Sign' in security configuration

2016-09-12 Thread neethu shaju
Hi I have tried adding the user with all lower case but it is still showing red stop sign. Thanks. On Monday, 19 May 2014 20:38:10 UTC+5:30, Ioannis Moutsatsos wrote: > > Thanks Steve; > > Although I'm running Jenkins on Windows and I'm not using LDAP for > authentication, I think your

Potential bug with Config File Management plugin and Credentials plugin dropping anything other than id, username, password

2016-09-12 Thread Charlie Evans
Hello, I'm using Config File Management to create a settings.xml file with the Oracle maven repository as a . The repository requires login so I'm using a username, password credential and the Replace All functionality. Unfortunately this does not work because the server requires additional

pipeline multi branch, how to continue if error occures

2016-09-12 Thread Klaus Rudolph
Hi all, if I use gtest in pipeline setup and have a unit test which fails the groovy script stops. How can I tell the script that I want to continue so that I am able to see the results from xunit/gtest plugin? >From the gui without running Jenkinsfile there I had to write "set +e" in the

Re: Post build task doesnt save

2016-09-12 Thread Antony Gelberg
I found it in the end. If "Escalate script execution status to job status" is checked, a task added below doesn't save, and is silently deleted. On Monday, 12 September 2016 12:55:03 UTC+3, Antony Gelberg wrote: > > Hi all, > > This is still an issue after upgrading to 2.21. Still no clues on

Re: Post build task doesnt save

2016-09-12 Thread Antony Gelberg
Hi all, This is still an issue after upgrading to 2.21. Still no clues on how to debug this? On Wednesday, 7 September 2016 16:32:11 UTC+3, Antony Gelberg wrote: > > Hi all, > > This should be the easy stuff but for some reason it's not happening. :) > > I'm trying to add a Post build task to a

Re: [SECURITY] How to protect pipeline jobs using GitHub branch/PR auto-discovery from doing harm

2016-09-12 Thread Leandro Lucarella
On Sat, 10 Sep 2016 09:57:33 -0700 (PDT) jpd4nt wrote: > Use slaves, not the master to run jobs. > > If you want chroot workspaces you could use docker slaves, run a > container per job etc. Mmmm, OK, but we need to create docker images to run the jobs based on

snipped generator for xunit google test

2016-09-12 Thread Klaus Rudolph
Hi all, I want to generate a code snipped to use it in the jenkins pipeline "Jenkinsfile". But I can't find the xunit / gtest inside the "jenkins->"MyProject"->Pipeline-Syntax->Snippet Generator. There is a very long list which items e.g archieve, build, scm and so on. But I can't find any

The new Global Pipeline Library

2016-09-12 Thread Sverre Moe
There has been changes in the Global Pipeline Library plugin https://issues.jenkins-ci.org/browse/JENKINS-31155 Jenkins Configuration => Global Pipeline Libraries Choosing "Modern SCM" the next drop down list is empty. What does this option actually do? Choosing "Legacy SCM" I'm able to define a

Re: Detect the git repo for multi-branch pipeline

2016-09-12 Thread Sverre Moe
Use instead checkout scm It will checkout code from the repository fredag 9. september 2016 19.15.03 UTC+2 skrev Phil Swenson følgende: > > Hi, I have a multi branch pipeline configuration job working fine so > far > > However every single repository has exactly the same jenkinsfile except