Re: Sourcing environment variables on node

2017-11-02 Thread Robert Hales
Yeah, as you found, the environment is the sh is only present during that run. It is just like dropping to a shell (or running another shell within a shell), running some things, and then exiting. If you want to set them globally, you will need to set them in an environment block in declarativ

Re: Circular dependencies in plugins

2017-11-02 Thread CLOSE Dave
Daniel Beck wrote: > Without a list of plugins (and versions) on the other instance it's > impossible to say why might these differ. Ok. Here's another instance with 73 plugins listed below. Again, the Graphviz dot file is attached. Ant Plugin 1.2 Apache HttpComponents Client 4.x API Plugin

How to define LabelParameterValue in Jenkinsfile

2017-11-02 Thread Kai Wang
Hi, I have two jobs A and B. Job A calls Job B like this *build job: "B", parameters[[$class: 'LabelParameterValue', name: 'node', label: "${env.NODE_NAME}"]]* I know I am supposed to add a Label parameter in B. But the problem is B is a multiple branch pipeline project defined by Jenkinsfile.

Re: the older builds for windows and mac

2017-11-02 Thread Masaru Tsuchiyama
Hi Daniel, I didn't notice it. Regards. Masaru Daniel Beck wrote: On 3. Nov 2017, at 01:08, Masaru Tsuchiyama wrote: If we add ?C=M&O=D to the end of the URL The column headers are clickable links that do this for you. -- You received this message because you are subscribed to the Goo

Re: the older builds for windows and mac

2017-11-02 Thread Daniel Beck
> On 3. Nov 2017, at 01:08, Masaru Tsuchiyama wrote: > > If we add ?C=M&O=D to the end of the URL The column headers are clickable links that do this for you. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group an

Re: the older builds for windows and mac

2017-11-02 Thread Masaru Tsuchiyama
Hi Daniel, Thank you for the reply. I googled how to show the files in reverse chronological order, and found it. F.Y.I For example, the binaries for Windows are available at http://mirrors.jenkins-ci.org/windows/ If we add ?C=M&O=D to the end of the URL like http://mirrors.jenkins-ci.org/wi

Re: Circular dependencies in plugins

2017-11-02 Thread Daniel Beck
> On 3. Nov 2017, at 00:41, CLOSE Dave wrote: > > I know that the dependencies are broken because I have another Jenkins > instance with nearly all the same plugins but without Docker Commons > Plugin. Without a list of plugins (and versions) on the other instance it's impossible to say why mi

Circular dependencies in plugins

2017-11-02 Thread CLOSE Dave
I have a Jenkins server (2.87) with quite a few plugins installed. 95, actually. I don't actually need some of them and I like to clean things up a bit. But that doesn't seem practical. Here's the list of installed plugins. Ant Plugin 1.7 Audit Trail 2.2 Authentication Tokens API Plugin 1.3

Re: Docker plugin. How to manage concurrent builds/volumes

2017-11-02 Thread Ryan Hochstetler
Kris, I tried to travel down the same road, mounting a volume with the workspace directory into the slave containers as well as the master in order to expose the workspace contents post-build. The *jenkins way* to provide developer-visibility into workspace contents seems to be committing the

Re: Sourcing environment variables on node

2017-11-02 Thread itchymuzzle
Don't know how to set it globally, most likely someone will know how to do that and respond. > each sh looses it's environment. Each sh is it's own environment. If you have two different terminals up, what you do in one isn't known in the other. For example. -- You received this message beca

Re: Sourcing environment variables on node

2017-11-02 Thread Christoph Ruepprich
Thanks ichymuzzle. It worked with a minor change. So the problem is that each sh looses it's environment. Is there a way to set it globally? node ('remote-server') { sh (''' . /home/cmr/myenv echo "My Variables: $FOO $BAR" ''') } On Thursday, 2 November 2017 14:01:04 UTC

Re: Does Docker Slave Plugin support Pipeline Maven Integration Plugin?

2017-11-02 Thread nicolas de loof
I can't tell, best to give it a try and report any issue you encounter doing this. Le 2 nov. 2017 1:41 PM, "'Sandra Parsick' via Jenkins Users" < jenkinsci-users@googlegroups.com> a écrit : > > ... -- You received this message because you are subscribed to the Google Groups "Jenkins Users" gro

Re: Jenkins crashing - java.lang.InterruptedException

2017-11-02 Thread Mark Waite
Alvin, I think if you compare the stack trace from 5 years ago with your stack trace, you'll find enough differences to hint that they are not likely related to one another. Yours is running "managedscripts.ScriptBuildStep.perform()" while the 5 year old stack trace is running "CommandInterpreter

Re: Jenkins crashing - java.lang.InterruptedException

2017-11-02 Thread Alvin Lee
Did you ever solve this issue? I'm running into the same thing now 5 years later java.lang.InterruptedException at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:502) at java.lang.UNIXProcess.waitFor(UNIXProcess.java:395) at hudson.Proc$L

Re: Sourcing environment variables on node

2017-11-02 Thread itchymuzzle
Maybe something like this? node ('remote-server') { sh ''' . /home/cmr/myenv' echo "My Variables: ${env.FOO} ${env.BAR}" ''' } -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiv

Re: Getting Current Build in Groovy

2017-11-02 Thread Neel Desai
But are you runnint this job on master JVM? What about running it from slave node? How can I get the value? I am trying to execute it from slave node and it is giving me error. It is strict requirement for me to run it from slave machine only. On Thursday, March 15, 2012 at 8:47:03 AM UTC-5, Ja

Sourcing environment variables on node

2017-11-02 Thread Christoph Ruepprich
Hi all, on a remote node I have a file that exports some variables: $ cat myenv export FOO=Hello export BAR=World My pipeline script tries to source that file, but the variables don't seem to stick: node ('remote-server') { sh ('. /home/cmr/myenv') echo "My Variables: ${env.FOO} ${env.BAR

Re: the older builds for windows and mac

2017-11-02 Thread Daniel Beck
> On 31. Oct 2017, at 13:46, Masaru Tsuchiyama wrote: > > Could you make the older builds for them available? See http://mirrors.jenkins-ci.org/ for the list. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group an

Re: github enterprise self signed certs

2017-11-02 Thread Tobias Breuer
Hi, I'm currently running into the same issue. Did you find any answer to this yet? Am Freitag, 10. Februar 2017 20:26:21 UTC+1 schrieb Ryan Golhar: > > Hi all - I'm trying to set up Jenkins with our enterprise github install. > We're using https with self-signed certificates. I've added the

Re: Using the same label multiple times in pipeline

2017-11-02 Thread Andreas Tscharner
On 30.10.2017 03:50, Daniel Becroft wrote: Hi, I'm experimenting with the scripted pipeline, and have a question about the use of node('') with a label. If I have the following scenario: node('A') { } node('B') { } node('A') { // Which node will be used here? } Is there any guarantee that the

Re: Is there a way of cloning the repo an additional layer down?

2017-11-02 Thread itchymuzzle
Helpful, as always, thanks. I will take a look at that. -- 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 t

Re: CI/CD Jenkins for Non Java projects

2017-11-02 Thread itchymuzzle
#! /usr/bin/env groovy pipeline { agent any parameters { string(name: 'Version', defaultValue: '2.3.0', description: 'What is the release version?') } stages { stage('Build') { steps { sh 'unix command(s) to build' }

Re: Disable log in runtime

2017-11-02 Thread Marcin Matuła
> Is any way to provide my own listener with empty implementation > in the runtime W dniu czwartek, 2 listopada 2017 12:08:29 UTC+1 użytkownik Marcin Matuła napisał: > > Hi, > > print method in Cause.java class: > > private void print(TaskListener listener, int depth) { > indent(listene

Disable log in runtime

2017-11-02 Thread Marcin Matuła
Hi, print method in Cause.java class: private void print(TaskListener listener, int depth) { indent(listener, depth); listener.getLogger().println( Messages.Cause_UpstreamCause_ShortDescription( ModelHyperlinkNote.encodeTo('/' + upstreamUrl, upstreamProject),