Re: Pipeline: The sh step does not show all output

2019-05-31 Thread Sverre Moe
Marvelous, thanks, I'll try that. fredag 31. mai 2019 18.20.28 UTC+2 skrev Daniel Saier følgende: > > You can also use the tee step > , > > which automatically propagates the return codes of the steps inside o

Re: SonarQube Server authentication token in Jenkins is default none

2019-05-31 Thread Quang Truong
>From the Credential Provider dialog, select Secret Text, then use your token in the secret field. You can read the detail of the credential plugin how to use this plugin On Thursday, May 30, 2019 at 10:11:06 AM UTC-7, Manu pprp wrote: > > Hi Quang Truong, > > Thanks for the response. > > But, I

Re: Pipeline: The sh step does not show all output

2019-05-31 Thread Daniel Saier
You can also use the tee step , which automatically propagates the return codes of the steps inside of the tee. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" g

Re: Pipeline: The sh step does not show all output

2019-05-31 Thread Sverre Moe
Tried various solutions. Settled with this which works: sh(label: "Build and Package", script: """ set -o pipefail make 2>&1 | tee buildOutputFile.txt """) fredag 31. mai 2019 13.50.23 UTC+2 skrev Sverre Moe følgende: > > I did not set such a parameter > > Like so? > sh("set -o pipefail

Re: Pipeline: The sh step does not show all output

2019-05-31 Thread Sverre Moe
I did not set such a parameter Like so? sh("set -o pipefail\n commandA | commandB") fredag 31. mai 2019 13.41.50 UTC+2 skrev Baptiste Mathus følgende: > > Likely because when calling scripts this way, `set -o pipefail` is not set > maybe? > > Le ven. 31 mai 2019 à 10:06, Sverre Moe > > a écrit

Re: Pipeline: The sh step does not show all output

2019-05-31 Thread Baptiste Mathus
Likely because when calling scripts this way, `set -o pipefail` is not set maybe? Le ven. 31 mai 2019 à 10:06, Sverre Moe a écrit : > This workaround gave me some problem with failing builds. > The step no longer is marked failed when it fails. > > mandag 27. mai 2019 16.27.11 UTC+2 skrev Sverre

Re: Custom action on job/build delete

2019-05-31 Thread Baptiste Mathus
Inside a plugin, yes and very easily. (ItemListener.onDeleted https://github.com/jenkinsci/jenkins/blob/892bdf124ebd3b8a386c7e019ce4ebe74262b819/core/src/main/java/hudson/model/listeners/ItemListener.java#L101 ) I don't think I've seen something to do that available as an existing feature on the /

Re: Writing a stream of logs from a shared library so they appear under one collapsible panel in Blue Ocean

2019-05-31 Thread Baptiste Mathus
Seems like a case where writing a plugin is the way if you want fine-tuning like this. Shared libraries are still /userspace/ side when using Pipeline. When needing to go deeper and get holds off more internal structure, shared libs are not a fit anymore. Le lun. 27 mai 2019 à 13:37, Peter Goodman

Re: Priority Sorter Plugin

2019-05-31 Thread Baptiste Mathus
Please do not double/re post. Thank you Le jeu. 23 mai 2019 à 14:38, Adam Ben-David a écrit : > Hi All, > > I just started to use this plugin, but unfortunately its not super obvious > how to make a correct setup. > > In our setup we have multiple views: > View A > View B > View C > > Inside of

Re: Running a Pipeline multiple times in parallel

2019-05-31 Thread Baptiste Mathus
https://issues.jenkins-ci.org/browse/JENKINS-54010 Le mar. 21 mai 2019 à 18:29, Sverre Moe a écrit : > > Our build Scripted Pipeline have several stages each in parallel > executions. > > [image: Screenshot_20190521_181654.png] > > I need to run two parallel Pipeline builds in the same Run. > I

Re: Jenkins replaces all occurrences of my user name in the log with asterisks. How can I change that?

2019-05-31 Thread Baptiste Mathus
The username being part of the credentials, I believe it being masked like the password is a correct behavior. If you'd like it to behave differently, I think you want to use something else then a credz type. But don't tell anyone I'm telling you to put your username as a string parameter, I'm not

Re: Priority Sorter Plugin

2019-05-31 Thread Baptiste Mathus
Can't you use a special parameter on the high priority jobs? IIRC from my usage of this plug-in 3 years ago, we have a release=true on some jobs that would make them higher priority than PR builds and the likes. Le mar. 21 mai 2019 à 13:23, Adam Ben-David a écrit : > Hi All, > > I just started

Re: jenkins user cpu is high and will jenkins create .firefoxcatche directory

2019-05-31 Thread Baptiste Mathus
No, that file is really unlikely created by Jenkins. What else runs on this machine? Le mar. 21 mai 2019 à 08:12, Turaco mobile a écrit : > Hi, Jenkins is running in CentOS 7 and the user is jenkins. Most of the > time cpu usage is high above 70% even nobody building the jobs. > Top command sho

Re: Jenkins Pipelines: Use jx-release-version

2019-05-31 Thread Baptiste Mathus
Note that Jenkins-X generally uses different community channels than Jenkins. >From a cursory reading, it looks to me running the Maven release plugin (for Java projects like in the article from Jose) in batch mode would achieve this too. But again, cursory read so I might have missed specifics.

Pipeline: OutOfMemoryError on build sh step

2019-05-31 Thread Sverre Moe
What is the usual culprit of this OutOfMemory problem? It happened at a "sh" step. It says nothing about HEAP or PermGen. My Jenkins has 8GB of MaxHeap, and are only now using 6GB. Running Jenkins LTS 2.150.1 java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thre

Re: Pipeline: The sh step does not show all output

2019-05-31 Thread Sverre Moe
This workaround gave me some problem with failing builds. The step no longer is marked failed when it fails. mandag 27. mai 2019 16.27.11 UTC+2 skrev Sverre Moe følgende: > > I got it to work by modifying my original sh step. I had to remove > returnStdout > > sh(label: "Build and Package", scrip

How to setup xvfb on slave and use in a pipeline for gui tests

2019-05-31 Thread Sakshi Arora
Hi All, I am on a master-slave setup and I have created a declarative pipeline job for that. I want to add functionality for xvfb to run before the build starts. Please tell me how can I configure the following : 1. Where can I specify the path of xvfb installation? ( Slave's path) 2. enable xv