How to break a pipeline manually?

2016-05-30 Thread Feng Yu
Hi there: Here is my pipeline code: node{ // my code here try { // some steps currentBuild.result = 'SUCCESS' } catch (Exception err) { currentBuild.result = 'FAILURE' mail // email to me if failed // some clean steps } if (currentBu

Re: [Blue Ocean] A new user experience project for Jenkins

2016-05-30 Thread James Dumay
Certainly it would be great to see your training updated to include Blue Ocean! Though it is very alpha right now and needs some more time to bake before its ready for everyone to use. I'd like to think that its the future of the Jenkins UI but that is up to the community to decide. And you are

Re: Blue ocean plugin release

2016-05-30 Thread nicolas de loof
http://hub.docker.com/r/jenkinsci/blueocean indeed is (at this time) a demo-only docker image for Blue Ocean, running SNAPSHOTs. 2016-05-30 8:44 GMT+02:00 Michael Neale : > Hi - hopefully sometime soon there will be some beta version. At the > moment a few critical features are missing to make i

Re: Blue ocean plugin release

2016-05-30 Thread James Dumay
When we think its a bit more useful we will be publishing it continuously to the update center so you can get the latest and greatest version thats in active development :) On Monday, May 30, 2016 at 7:17:26 AM UTC+10, redpublic wrote: > > When Jenkins Blue Ocean plugin is going to be available?

[Blue Ocean] Test reporting UI

2016-05-30 Thread James Dumay
Hi all, I just wanted to share some very early mockups of what the test reporting interface could look like in Blue Ocean. I believe it would be great if we had a standard interface for all test report types but plugin developers would be free to add their own custom UI via extension points.

Run jobs downstream with parameters

2016-05-30 Thread Antonio Hernandez
Hi everyone, I'm trying again and again how run several jobs downstream being the first one parameterized with two parameters like this: The first parameter EN

Re: maven projects become slow after a couple of months

2016-05-30 Thread Jorg Heymans
Sadly there is no additional debug output being emitted during the 'scanning for projects' phase, with -X set. *00:00:10.329* [DEBUG] Reading user settings from C:\.m2\settings.xml*00:00:10.378* [INFO] Scanning for projects...*00:00:56.941* [INFO]

Re: Blue ocean plugin release

2016-05-30 Thread Michael Neale
docker run -p 8080:8080 jenkinsci/blueocean to see it running. On Monday, May 30, 2016 at 5:28:17 PM UTC+10, nicolas de loof wrote: > > http://hub.docker.com/r/jenkinsci/blueocean indeed is (at this time) a > demo-only docker image for Blue Ocean, running SNAPSHOTs. > > > 2016-05-30 8:44 GMT+02

Re: [Blue Ocean] Test reporting UI

2016-05-30 Thread Michael Neale
Worth posting the to dev list too? On Monday, May 30, 2016 at 5:42:15 PM UTC+10, James Dumay wrote: > > Hi all, > > I just wanted to share some very early mockups of what the test reporting > interface could look like in Blue Ocean. I believe it would be great if we > had a standard interface f

Re: [Blue Ocean] Test reporting UI

2016-05-30 Thread James Dumay
Not a bad idea. Done. On Mon, May 30, 2016 at 5:56 PM Michael Neale wrote: > Worth posting the to dev list too? > > > On Monday, May 30, 2016 at 5:42:15 PM UTC+10, James Dumay wrote: >> >> Hi all, >> >> I just wanted to share some very early mockups of what the test reporting >> interface could

Maven projects ending with

2016-05-30 Thread chniklas
We are currenbtly using Jenkins 2.7. Since the upgrade from 1.647, all Maven-based jobs end with the following message: ... Set build name. channel stopped New build name is '' ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-us...@googlegroups.comjava.lang.Il

Re: maven projects become slow after a couple of months

2016-05-30 Thread Jorg Heymans
Interestingly, executing offline with -o makes the problem disappear. But this is obviously not a solution for me.. Jorg On Monday, May 30, 2016 at 9:52:04 AM UTC+2, Jorg Heymans wrote: > > Sadly there is no additional debug output being emitted during the > 'scanning for projects' phase, with

Error after upgrade: Prime size must be multiple of 64

2016-05-30 Thread Peter Marcoen
When updating from v2.1 to v2.7, I all of a sudden get the following error when using "Send build artifacts over SSH": ERROR: Exception when publishing, exception message [Failed to connect session for config [*my-server-name*]. Message [Session.connect: java.security.InvalidAlgorithmParameterE

Exporting evironment variables from Groovy script doesn't work

2016-05-30 Thread chniklas
We are currently using Jenkins version 2.7. After upgrading from 1.647, we have the problem that environment variables created in a Groovy script are not exported and visible in a following shell script. The projects are Maven-based. System Groovy script: // This script will set the artifact ve

Re: How to break a pipeline manually?

2016-05-30 Thread Michael Neale
you can just return - and it should exit the script? (or throw an exception). On Monday, May 30, 2016 at 5:21:16 PM UTC+10, Feng Yu wrote: > > Hi there: > Here is my pipeline code: > node{ > // my code here > try { > // some steps > currentBuild.result = 'SUCCESS' >

Re: Pipeline: Keep the main logic outside of Jenkinsfile

2016-05-30 Thread Sverre Moe
I followed the instructions to get the workflowLibs.git repository from Jenkins: SInce the repository was empty I got nonexistent ref as expected and mentioned in the instructions. sverre@mintaka:~/workspace> git clone https://build.company.com:8443/workflowLibs.git Cloning into 'workflowLibs'

Job Abort on Windows only kills child processes if jenkins-slave.exe ist running?

2016-05-30 Thread Martin Ba
Ver: LTS Jenkins ver. 1.625.2 We run our Windows Build nodes/slaves via the Windows Service jenkins-slave.exe Sometimes the Windows Service process "goes down", but its java.exe child process that is actually running the jenkins slave continues to work (fine). What we noticed with this is

Re: Proxy and certificate

2016-05-30 Thread sebastienjfosse02
Thanks. Too much complicate for me at this moment, I'll look later. Le vendredi 27 mai 2016 23:30:17 UTC+2, Mykola Nikishov a écrit : > > sebastie...@free.fr writes: > > > We have just installed Jenkins and we want to install some plugins (Git, > > ...). But in plugins section, Advanced tab, th

Re: Run jobs downstream with parameters

2016-05-30 Thread Antonio Hernandez
I found the solution by myself!! Just in case someone could find useful, the way to call a variable is ${variable} In my case , the problem was try calling a variable %BRACH% instead of ${BRANCH} Cheers El lunes, 30 de mayo de 2016, 9:44:43 (UTC+2), Antonio Hernandez escribió: > > Hi everyone,

Re: Multiple pipelines in Jenkinsfile

2016-05-30 Thread Norbert Lange
Sorry, its not really clear to me what you expect. 1 Build = one Pipeline (execution) This Pipeline can be flexible and seperated horizontally with stages, and vertically with parallel execution. Further, what will be ultimately run can be scripted from multiple scripts (some could be "pipelines

Re: Multiple pipelines in Jenkinsfile

2016-05-30 Thread Bartłomiej Sacharski
Basically, I would like to define multiple builds (different pipelines) with different stages and keep them in Jenkinsfile(s) in the repo. On Monday, May 30, 2016 at 1:03:10 PM UTC+2, Norbert Lange wrote: > > Sorry, its not really clear to me what you expect. > 1 Build = one Pipeline (execution)

Multibranch pipeline, problem running scripts

2016-05-30 Thread Adalberto Castelo
Hello! I'm new to jenkins, and I'm trying to get a simple multibranch pipeline to work. All my Jenkinsfile in my git project does is run a shell script, also in the git project. But all variations I tried end with "java.io.IOException: Cannot run program "./myscript.sh": error=2, No such file

Re: Multibranch pipeline, problem running scripts

2016-05-30 Thread Andrew Bayer
You need to do a "checkout scm" once you're in the node block. Also, try "sh ./myscript.sh" rather than .execute(). A. On Monday, May 30, 2016, Adalberto Castelo wrote: > Hello! > > I'm new to jenkins, and I'm trying to get a simple multibranch pipeline to > work. All my Jenkinsfile in my git p

Re: Multibranch pipeline, problem running scripts

2016-05-30 Thread Adalberto Castelo
Thanks, that was a *crucial* piece of information (checkout scm). And yes, sh worked where *.execute didn't, not sure why. I do need to catch the exit status of the script, so now I'm looking into how to do that from sh, but I really want to thank you for the checkout scm tip! On Monday, May 30

Can I restrict the number of log directories present in the $WORKSPACE

2016-05-30 Thread Pradeep Patra
Hi all, I want to restrict the number of log directories to be present at the $WorkSpace to 5. Can I do it in a easy way without writing a separate script? Regards Pradeep -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe fro

Re: Multiple pipelines in Jenkinsfile

2016-05-30 Thread Norbert Lange
So you have a git repository with pipeline (as script) and want to run them all? Its possible, but Its somewhat a messy syntax. # global variable def Myclosure Node { # has to be in a node Checkout scripts Myclosure = # load scripts and call them } # call the closure. Myclosure() See triggering

Re: Multiple pipelines in Jenkinsfile

2016-05-30 Thread Norbert Lange
So you have a git repository with pipeline (as script) and want to run them all? Its possible, but Its somewhat a messy syntax. # global variable def Myclosure Node { # has to be in a node Checkout scripts Myclosure = # load scripts and call them } # call the closure. Myclosure() See triggering

Jenkins 2.7 - How to list all files in a directory

2016-05-30 Thread Kristian
Hello all, I have a problem. In a job of Jenkins, I want to iterate over a bunch of files, e.g. *.c. This is done through a shell script for Linux, e.g. for f in $(ls *.c); do echo "$f" done That is how it is written in the job. But when I start, Jenkins changes it into ++ ls '*.c' ls: cannot

Re: Multiple pipelines in Jenkinsfile

2016-05-30 Thread Bartłomiej Sacharski
Thanks. Will look into that. On Monday, May 30, 2016 at 7:42:34 PM UTC+2, Norbert Lange wrote: > > So you have a git repository with pipeline (as script) and want to run > them all? > > Its possible, but Its somewhat a messy syntax. > # global variable > def Myclosure > > Node { > # has to be in

Global Tool Configuration crash in Jenkins 2.6 latest global tool config

2016-05-30 Thread Warren Postma
When I access http://localhost:8080/configureTools I get a null pointer exception: javax.servlet.ServletException: java.lang.NullPointerException at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:796) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876) at org.kohsu

Re: Global Tool Configuration crash in Jenkins 2.6 latest global tool config

2016-05-30 Thread Warren Postma
Appears to be fixed in 2.7. On Monday, May 30, 2016 at 2:03:16 PM UTC-4, Warren Postma wrote: > > When I access http://localhost:8080/configureTools I get a null pointer > exception: > > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To uns

Re: Multi-branch pipeline project with Subversion

2016-05-30 Thread Pieter-Jan Busschaert
Hello, I have made some progress on this (much slower than I would like) and would like to document some answers to my earlier questions + add some new questions / problems I've run into. Hopefully somebody here can help me out? On Friday, 27 May 2016 17:17:21 UTC+2, Pieter-Jan Busschaert wrot

Re: Jenkins 2.7 - How to list all files in a directory

2016-05-30 Thread Baptiste Mathus
Add #!/bin/bash as first line. 2016-05-30 19:43 GMT+02:00 Kristian : > Hello all, > > I have a problem. In a job of Jenkins, I want to iterate over a bunch > of files, e.g. *.c. This is done through a shell script for Linux, > e.g. > > for f in $(ls *.c); do > echo "$f" > done > > That is how i

Re: Multiple pipelines in Jenkinsfile

2016-05-30 Thread Michael Neale
One jenkinsfile is one "pipeline" - what you may have done with many jobs in the past can be done with one pipeline. it can be quite rich if you need it to be. You can call other "jobs" from a Jenkinsfile, but I am not sure if that is what you mean. On Monday, May 30, 2016 at 3:47:40 AM UT

Re: Multibranch pipeline, problem running scripts

2016-05-30 Thread Michael Neale
I forget that "checkout scm" all the time - is there some way to make that more obvious or "fail safe"? (I know you can't just check things out without a node, so it can't be automatic, but it is all to easy to forget now). It seems like a "don't checkout scm" may have made more sense. On Tu