Re: wrong workspace picked up by node(..) when running parallel jobs

2017-10-25 Thread Robert Hales
There is no guarantee that you will get the same workspace on a node. It will try, but a workspace can only be in use by 1 job at a time. So if you require a specific workspace, you have a few options: Define a custom workspace with the ws step. But I think 2 jobs still can't use it at the sam

wrong workspace picked up by node(..) when running parallel jobs

2017-10-25 Thread Torsten Reinhard
Hi, this pipeline sample fails, when started multiple times and running in parallel at the same time. Assigning a captured node again seems to be not enough - the workspace isn´t matching than what will lead to very strange behaviour. import com.cloudbees.groovy.cps.NonCPS String buildNode St

Re: Agents not connecting after 2.60.3 Jenkins upgrade

2017-10-25 Thread Mark Waite
Are your build agents all running JRE 8? If not, they won't connect to Jenkins 2.60 and later. Java 8 is required. Mark Waite On Wednesday, October 25, 2017 at 1:19:00 PM UTC-6, edward.b...@sovos.com wrote: > > Hello, > > > > I am attempting to upgrade Jenkins on one of our sandboxes to the

Agents not connecting after 2.60.3 Jenkins upgrade

2017-10-25 Thread edward . basiliere
Hello, I am attempting to upgrade Jenkins on one of our sandboxes to the latest LTS version (2.73.2). The issue I have encountered is after upgrading, our build agents have all lost their connection to the master. I tried this a couple different ways to find out when the issue starts.

blueocean nexus artifact uploader pipeline

2017-10-25 Thread nup
Hi, Has anyone been able to successfully deploy the artifact to Nexus from Jenkins using blueocean pipeline? I have tried the following pipeline getting failure, but in my log file for stage Deploy to Nexus does not show any errors. stage('Deploy to Nexus') { steps { ne

Re: Defining *project level* environemnt variables

2017-10-25 Thread Sébastien Hinderer
Thanks a lot for your response, Stephen. Not sure I'm brave enough to try to write something myself. Just too bad it does not already exist but I guess we'll just do without since it'd be a nice addition but not really mandatory. Best wishes, Sébastien. -- You received this message because you

Re: staging with specific agent settings strange behavior

2017-10-25 Thread Dan Tran
https://issues.jenkins-ci.org/browse/JENKINS-33510 has a reference to this scenario On Tuesday, October 24, 2017 at 4:08:07 PM UTC-7, Dan Tran wrote: > > > I would like to hear from Jenkins folks to confirm if this is correct > behavior :-) > > Thanks > > -Dan > > On Tuesday, October 24, 2017

Re: jobs modified via script console do not take effect

2017-10-25 Thread Arturo Flores
It doesn't seem that was the answer. So I modified the script by adding: job.scheduleBuild(0) at the end to trigger a build. I observed the job build in the web interface. However, the job did not build every minute after this. I also triggered a build by clicking the "Build Now" link in th

Detecting build abort in pipeline

2017-10-25 Thread Raja Nasrallah
Hi, In the following code, Is it possible to find if the build is aborted by user or grunt failed try{ . sh "grunt voter" } catch(ex){ } The problem is that exception ex in both cases is always hudson.AbortException Kind regards, Raja -- You received this message because you

Re: Individual Build Step Status

2017-10-25 Thread Robert Hales
It is called Pipeline On Wednesday, October 25, 2017 at 12:44:24 AM UTC-6, TheGrovesy wrote: > > I have a single Jenkins item which gets checked out and then has 6 > different build steps for different build variants. On the main Jenkins > page this is shown as a single item status. It would be

Re: Jenkins CSS et JS in email - rules

2017-10-25 Thread Srikanth Nakka
A simple solution is, combine the all CSS and JS Code with html (html, CSS, js in one single file). On Oct 25, 2017 7:20 PM, "Henri Pineau" wrote: Hello, I would like send email after a build and insert an html template. But Jenkins avoid CSS and JS. I know it is possible to change this rules.

Jenkins CSS et JS in email - rules

2017-10-25 Thread Henri Pineau
Hello, I would like send email after a build and insert an html template. But Jenkins avoid CSS and JS. I know it is possible to change this rules. Please, How I do it ? Thank's Henri -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsu

email with html file, problem with css

2017-10-25 Thread Henri Pineau
Hello, I need to send an email after a build. In this email there is an html report, but when I receive this email, there is no CSS. In my html file I use bootstrap. I have saw it is probably an CSP problem. Someone have the same problem and solved ? Thank's Henri -- You received this mess

Re: When am trying to update the plugin in jenkins shows warning

2017-10-25 Thread itchymuzzle
What is your question? -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit h

Re: Multibranch Pipeline - GIT - SSH authentication

2017-10-25 Thread Stephen Connolly
If it was a github server, you would need the username in the credentials to be `git` and not `jenkins` because GitHub only accepts SSH connections with the username `git`. I wonder if something similar is happening with gitlab? On 25 October 2017 at 03:59, Mark Waite wrote: > You may need to lo

Re: Multibranch Pipeline - GIT - SSH authentication

2017-10-25 Thread Mark Waite
You may need to look more carefully at the configuration of the multibranch pipeline job. If it is using a username/password credential, then either the credential named "jenkins" in your configuration is not a private key (which it seems to be to me) or there is a location in the job which define

Re: Multibranch Pipeline - GIT - SSH authentication

2017-10-25 Thread Samuel Mutel
I tried also to "enter directly" the private key but it does not work. Something curious ... When I parse the log file of the SSH server located on the GITLAB server, I see error message related to a connection with login/password and not related to a connection with ssh key. It's mean that the j

Re: How to share local Maven repo between nodes?

2017-10-25 Thread Torsten Reinhard
Thanx, now I´m doing something like: String buildNode node() { buildNode = env.NODE_NAME echo "performing build on node ${buildNode}" } checkpoint("built") node('other') { echo "running on any other node, currently it´s ${env.NODE_NAME}" } checkpoint("deployed") node( buildNode ) {

Re: Multibranch Pipeline - GIT - SSH authentication

2017-10-25 Thread Mark Waite
Those settings seem reasonable to me. I don't see anything in that which should be any problem. If you insert the content of that file in the "enter directly" selection, does it behave any differently? I generally use "enter directly" myself, though I know of no reason why the other techniqu

How does jenkins locate to the files in slave?

2017-10-25 Thread 居飞
Hi: I have a Jenkins network for out Test Automation. In this network, I installed a Jenkins Master, and then add 5 slave node. The master and all the slaves are linux systems. All the slaves has same lable, such as "cpk" I configured a job, and I specified it running on "cpk". So when

Clickable link in console ESC[8mha

2017-10-25 Thread Khomyuk Viktor
Hi! I see that console tah clickable link to jenkins jobs/users/etc. This links starts with esc sequence ESC[8mha . Is it possible to print (echo) that links from shell step ? I`m talking not about http:// links -- You received this message because you are subscribed to the Google Groups "Je

Re: Multibranch Pipeline - GIT - SSH authentication

2017-10-25 Thread Samuel Mutel
Here is my multibranch config: Here is my credential config: