Call closure from another Jenkinsfile with Remote File Loader Plugin

2017-01-04 Thread Doug Garstang
All, I'm trying to turn my Jenkinsfile into a library, but unfortunately I'm not much of a groovy programmer. I initially put several functions into my Jenkinsfile library, like this: *def do_something1() {* * ...* *}* *def do_something2() {* * ...* *}* and called it with this from another Je

Re: Jenkins help

2017-01-04 Thread KingTux
Thank you, I have figured out question one, two, three. But I do have a new question. How do I make it be port 80 with apache running. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails fro

Re: [Declarative Pipeline] params.xxx does not work for git

2017-01-04 Thread David Karr
On Tue, Jan 3, 2017 at 10:46 PM, Dan Tran wrote: > false alarm again, i need to double quote. Not sure if this is intended > > git url: "${params.gitUrl}", branch: "${params.branch}" That's a Groovy restriction. A single-quoted string is only a "string", but a double-quoted string is a "gstri

Re: [Pipeline] @NonCPS causes "sh" to hang with parallel steps

2017-01-04 Thread David Karr
In short, you can't execute "pipeline steps", and "sh" is a pipeline step, from a @NonCPS method. On Wed, Jan 4, 2017 at 3:40 AM, Jørgen Sølvernes Sandnes wrote: > Hi! > > I struggled for a long time trying to figure out why my parallel steps kept > hanging when running shell commands (sh). After

Re: an error occurred unable to connect to jenkins

2017-01-04 Thread Slide
You haven't given enough information for anyone to help. Have you looked at your logs? Have you tried restarting? Here is a good outline of some things to look at when asking a question (from [1]) How do I ask a good question? We’d love to help you. To *improve your chances* of getting an answer,

Re: Jenkins help

2017-01-04 Thread Slide
I think he wanted people to be able to download the jars, not do anything else. That was my impression from the initial email. On Wed, Jan 4, 2017, 09:06 Jennifer Hofmeister < jennifer.hofmeis...@younicos.com> wrote: > You’re right. But it seems to be what they asked for: > > “for other people on

an error occurred unable to connect to jenkins

2017-01-04 Thread Yuvraj Yadav
I am facing issue while new setup of jenkins. Error : an error occurred unable to connect to jenkins Please me how resolve it. -- 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, se

Re: [Declarative Pipeline] Non-executed stages report success

2017-01-04 Thread Andrew Bayer
That's actually addressed with Blue Ocean - we mark failed stages with a special tag that Blue Ocean knows to treat as a failure. I think we could probably do the same in stage view - could you possibly open a JIRA for that? Thanks! A. On Jan 3, 2017 15:52, "Chris Carson" wrote: > I am trying o

Re: Securely insert ssh keys into Jenkins Docker image

2017-01-04 Thread Barry Laffoy
Dirk Heinrichs' comments have made me realise that this problem goes both ways. Since my host has a user with uid 1000, the data volume on the host at, say, /var/lib/docker/volumes/6a70b50dc1c6d201bd772e8d4bf8cb17d9668fbed0661e27b5fcf7d6b7847070/_data is actually owned by that host user. What

RE: Jenkins help

2017-01-04 Thread Jennifer Hofmeister
You’re right. But it seems to be what they asked for: “for other people on the internet … without needing a account.” It should be a very well-isolated Jenkins instance in that case. From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Slide Sent: Mittwo

Re: Jenkins help

2017-01-04 Thread Slide
I don't think you want "Anyone can do anything" that would open the instance up to a lot of security issues. On Wed, Jan 4, 2017 at 9:02 AM Jennifer Hofmeister < jennifer.hofmeis...@younicos.com> wrote: > Ah, just so there’s no confusion: > > Jenkins main page, left-hand side: Manage Jenkins > >

RE: Jenkins help

2017-01-04 Thread Jennifer Hofmeister
Ah, just so there’s no confusion: Jenkins main page, left-hand side: Manage Jenkins MyJavaJob main page, left-hand side: Workspace ;) From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of Jennifer Hofmeister Sent: Mittwoch, 4. Januar 2017 17:00 To: jenkins

RE: Jenkins help

2017-01-04 Thread Jennifer Hofmeister
Hi! 1: if you want only to compile one file, I guess you can just choose a “sh” or “batch” build step. Else, you need a build tool like maven, which is a little more complex (and requires some basic understanding of what’s going on). You could choose the Maven job type in that case. 2: Use the

Jenkins help

2017-01-04 Thread KingTux
Hello, I have some questions I hope some people can help me with. Question one: How do I compile a jar file? the system is getting the source from my Github https://github.com/KingTux2/ServerInfo Question Two: How do I make it be able to be download as a jar file. Question Three: How do I make my

Performance plugin how use Absolute constraints ?

2017-01-04 Thread Vincent Daburon
Hi, Some requests have response time very short (6ms) and relative comparison give difference to high (6ms compare to 7ms => 16% diff). For example : === Performance: Recording JMeter reports 'resultat/res_filtred.j

Authentication problem using git

2017-01-04 Thread Carlos Domenech
I'm trying to set up a Jenkins to clone a git repository using the corresponding plugin. However I don't know why but it's failing when trying to authenticate. I tried to define the credentials via Jenkins but it fails: Building in workspace /var/lib/jenkins/workspace/CLARA > /usr/bin/git

please help to configure to deploy multiplt build parallel from jenkinsfile

2017-01-04 Thread Atul Sharma
Hello i have multiple micro services build artifact and i want to deploy all the artifact parallel in workflow via one jobs which is configure in same jenkinsfile this job to deploy the artifact from XL deploy , So please tell me how can i configure paraller in jenkinsfile , Please find below j

[Pipeline] @NonCPS causes "sh" to hang with parallel steps

2017-01-04 Thread Jørgen Sølvernes Sandnes
Hi! I struggled for a long time trying to figure out why my parallel steps kept hanging when running shell commands (sh). After trying a lot of different things, I found out that the @NonCPS annotation caused this behavior to happen. See the sample Jenkinsfile below. When I commented the @NonCP

Re: Overriding default Multibranch Pipeline job parameters defined in a Jenkinsfile

2017-01-04 Thread Hans Kristian Flaatten
I have the exact same problem! Did you ever find a solution or workaround, Sebastian? On Monday, June 13, 2016 at 4:37:50 PM UTC+2, Sebastian Nowicki wrote: > > Hi, > > I have create a parameterised Multibranch Pipeline job, defining the > parameters and their defaults in a Jenkinsfile inside th

Office 365 connector plugin

2017-01-04 Thread KaliRajan G
Hi Everyone, I want to pass the URL Value using the project with build paramterized. How Can i achieve that? Thanks, Kalirajan G -- 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

"Subproject Builds" section of a build is empty when calling a pipeline script

2017-01-04 Thread 'Stefan H' via Jenkins Users
Hey Jenkins users, I have Jenkins Job that calls another job which is a pipeline. The pipeline itself calls again other jobs and performs different actions. Normally, I can see all the subprojects that have been built when I click on a build. This is not the case when a job calls a pipeline ins

Re: Securely insert ssh keys into Jenkins Docker image

2017-01-04 Thread Barry Laffoy
Aha, I understand what you're saying now. There is such a user on both the development and the production hosts I'm using, unfortunately. I'll investigate what can be done to change that. On Wednesday, 4 January 2017 08:44:45 UTC, Dirk Heinrichs wrote: > > Am 04.01.2017 um 09:35 schrieb Barry La

Re: Securely insert ssh keys into Jenkins Docker image

2017-01-04 Thread Dirk Heinrichs
Am 04.01.2017 um 09:35 schrieb Barry Laffoy: > Thanks for the response, but I think I must be missing a trick because > I don't know what you're getting at. > > If say, the uid of the host user is 1005, and the uid of the > container's jenkins user is 1000, these clearly don't match. I would > nee

Re: Securely insert ssh keys into Jenkins Docker image

2017-01-04 Thread Barry Laffoy
> > one I think would be nice is one that basically takes an SSH_AGENT from > the Jenkins user and exposes its keys as SSH keys (so good an idea I may > implement it myself... if I get spare time or if my employer agrees it is a > good idea) > In my reading I came across some references to mou

Re: Securely insert ssh keys into Jenkins Docker image

2017-01-04 Thread Barry Laffoy
> > Well, then let it match. Or do you need it on the host? > > HTH... > > Dirk > Thanks for the response, but I think I must be missing a trick because I don't know what you're getting at. If say, the uid of the host user is 1005, and the uid of the container's jenkins user is 1000, thes

Re: [Declarative Pipeline] params.xxx does not work for git

2017-01-04 Thread Dan Tran
Thanks, the venture into pipeline, groovy, and declarative pipeline are interesting. Take some hands on to get a hang of it -Dan On Tuesday, January 3, 2017 at 11:45:09 PM UTC-8, Daniel Beck wrote: > > > > On 04.01.2017, at 07:46, Dan Tran > > wrote: > > > > git url: "${params.gitUrl}", b