Re: Chaining freestyle with a Pipeline on the same Git hash?

2017-04-26 Thread Dan Tran
I meant the jenkins library must NOT be influenced by external upstream job git params On Wednesday, April 26, 2017 at 5:48:45 PM UTC-7, Dan Tran wrote: > > It turns out my pipeline uses another internal jenkins pipeline library > via @Library('@0.0.1') _ > > this is why it bails. > > I th

Re: Help me to figure out Plug in for change repository url and credentials for all the projects from central level

2017-04-26 Thread Sandeep Grandham
Thank you Victor.. On Thursday, April 27, 2017 at 3:38:35 AM UTC+5:30, Victor Martinez wrote: > > Hi there, > > I don't know if the below plugins support exactly your use case: > - https://wiki.jenkins-ci.org/display/JENKINS/Configuration+Slicing+Plugin > > - https://wiki.jenkins-ci.org/display

java.io.IOException: Could not copy slave.jar into '/homes/bldmgr' on slave

2017-04-26 Thread venkatesh guttal
Hi, I am getting below error in jenkins when i trigger the job. user bldmgr version tcsh 6.17.00 (Astron) 2009-07-10 (x86_64-unknown-linux) options wide,nls,dl,al,kan,sm,rh,color,filec [04/27/17 08:06:53] [SSH] Checking java version of java [04/27/17 08:06:53] [SSH] java -version returned 1.8.0_

Re: Chaining freestyle with a Pipeline on the same Git hash?

2017-04-26 Thread Dan Tran
It turns out my pipeline uses another internal jenkins pipeline library via @Library('@0.0.1') _ this is why it bails. I think the jenkins library tag should be influenced external upstream job git params is it a bug I should file? Thanks -Dan On Wednesday, April 26, 2017 at 9:45:35

jenkins pipeline dsl - executing a list/map of nodes

2017-04-26 Thread dpreilan
Hey, I am building a map of nodes to run in parallel. This works fine: parallel unit.build_nodes However, I am trying to flexible for some jobs that are memory/cpu intensive and NOT in parallel. I want my library/dsl code to be same and do something like: if (do_parallel) { parallel un

Re: Help me to figure out Plug in for change repository url and credentials for all the projects from central level

2017-04-26 Thread Victor Martinez
Hi there, I don't know if the below plugins support exactly your use case: - https://wiki.jenkins-ci.org/display/JENKINS/Configuration+Slicing+Plugin - https://wiki.jenkins-ci.org/display/JENKINS/Scriptler+Plugin They can be customised with some groovy scripting in any case. Cheers On Wednes

Re: Can System Groovy Choice Parameter be defined globally?

2017-04-26 Thread Victor Martinez
Hi there, I don't know what plugin you are using exactly. There are different approaches as far as I see: 1) https://wiki.jenkins-ci.org/display/JENKINS/Active+Choices+Plugin plugin supports the scriptler plugin, that's another way of centralising those scripts. 2) if you are tied to that par

Re: How to trigger job when a new patchset is uploaded for an existing change

2017-04-26 Thread Sagar Bhowmik
The version of jenkins is: 2.46.1 Gerrit trigger: 2.23.1 Sorry for the description. Here are some screenshots attached. The project is parameterized: parameter.jpg The gerrit trigger: trigger.jpg gerrit project provided in Plain text and i know it works because it does tr

Re: email-ext no mor resolve template absolute path

2017-04-26 Thread jerome
Anybody know if this is part of another security risk or just a bug of emailext command into pipeline? I was creating a template on teh fly by concat of wanted sections by my pipeline steps results def email_template_file = pwd([tmp: true]) + "\\email_template_file.jelly"; writeFile([file: email

Re: Unable to execute Oracle SQL scripts from jenkins

2017-04-26 Thread manushet2
export ORACLE_SID in /etc/profiles On Thursday, October 6, 2016 at 4:43:33 PM UTC+5:30, pradeep palem wrote: > > Hi All, > > I am trying to run the oracle sql script which sits in aws rds from > jenkins server(AWS linux).I have instlled sql*plus on my jenkins server . > I can able to connect dat

Which class does the method libraryResource() come from???

2017-04-26 Thread TInaTinaTian L
I know that Jenkinsfile pipeline DSL can resolve libraryResource() magically without explicitly providing any context (pardon my poor understanding of the pipeline DSL). But if I want to use libraryResource() as a regular groovy class, how do I use it??? Is it a static method? Which class does

How to compile pipeline steps as regular groovy file???

2017-04-26 Thread TInaTinaTian L
When invoked from Jenkinsfile, pipeline steps work fine and all. But when I want to compile a library with pipeline steps, compilation fails. > > package com.company; > > def read(fileName) { > return libraryResource(fileName) > } > > return this > > How to compile the above code as regular .gr

RE: email-ext circular dependency

2017-04-26 Thread Chanda Unmack
Thanks! I’ve downgraded the plugin and the circular dependency error went away - now getting errors around templates, but that’s another story. I will file a Jira ticket now. One error down, but still an unstable Jenkins – at least it’s slightly easier to get through the logs ☺ From: Victor Ma

Re: Chaining freestyle with a Pipeline on the same Git hash?

2017-04-26 Thread Dan Tran
My apology for the incompleteness Here are my build info * 2 jobs configure with same git repo same branch ( master) * First job ( freestyle) triggers 2nd job with Build Trigger Parameters and passing over 'Pass thru git commit that was built' exception: Checking out Revision ff5e8f0a7ee15cbb

How to properly mixin libraryResource() pipeline task???

2017-04-26 Thread TInaTinaTian L
Hello, package com.mycompany; > import org.jenkinsci.plugins.workflow.libs.*; > > this.metaClass.mixin(ResourceStep) > def read(fileName) { > return libraryResource(fileName) > } > > return this > > I have the above LibraryResource.groovy file that basically just delegates to the libraryResourc

Re: Scripts not permitted to use a method already approve in In-process Script Approval GUI

2017-04-26 Thread Romaric Crailox
I'm pretty sure that it started less than one month. I am on Jenkins 2.55. Furthermore I have Permissive Script Security Plugin installed. Le mercredi 26 avril 2017 04:57:48 UTC+2, Lucas Brendel a écrit : > I have been running in to this exact same issue, in fact i just posted > here

Re: pipeline: parameters documentation.

2017-04-26 Thread Kenneth Johansson
On 2017-04-26 16:14, Björn Pedersen wrote: Am Mittwoch, 26. April 2017 14:43:39 UTC+2 schrieb Kenneth Johansson: hmm I'm starting to question the usefulness of the pipeline system. Its very hard to understand how to do even very basic stuff. Even something as easy as finding o

Re: pipeline: parameters documentation.

2017-04-26 Thread 'Björn Pedersen' via Jenkins Users
Am Mittwoch, 26. April 2017 14:43:39 UTC+2 schrieb Kenneth Johansson: > > hmm I'm starting to question the usefulness of the pipeline system. Its > very hard to understand how to do even very basic stuff. > > Even something as easy as finding out what type of parameters I can use > is hard. >

pipeline: parameters documentation.

2017-04-26 Thread Kenneth Johansson
hmm I'm starting to question the usefulness of the pipeline system. Its very hard to understand how to do even very basic stuff. Even something as easy as finding out what type of parameters I can use is hard. The documentation on https://jenkins.io/doc/book/pipeline/syntax/ only mention str

vSphere plugin - cloning VM successfully, but failed step

2017-04-26 Thread Geoff Gatward
Hi, I'm trying to create a pipeline that involves cloning a VM in vSphere (5.5) and have a couple of issues - not sure if its what I'm doing or a bug... My vSphere environment is vCenter Appliance 5.5 + one esxi 5.5 host with local datastore and no resource pools defined. Jenkins 2.53, vSphere

Re: pipeline: script location

2017-04-26 Thread Kenneth Johansson
On 2017-04-26 13:35, Mark Waite wrote: There is a "Replay" link attached to each build that will allow you to make experimental changes in an editor on the web page. For example, I see "Replay" above the "Pipeline Steps" link in the drop down menu associated with Build #1 of one of my pipeline

Re: pipeline: script location

2017-04-26 Thread Mark Waite
There is a "Replay" link attached to each build that will allow you to make experimental changes in an editor on the web page. For example, I see "Replay" above the "Pipeline Steps" link in the drop down menu associated with Build #1 of one of my pipeline jobs that uses Pipeline definition from SC

pipeline: script location

2017-04-26 Thread Kenneth Johansson
So I have a pipeline job that is using the "pipeline script from SCM" as suggested in the documentation. But for developing code this is really really annoying as I now need to checking every single change even if its just to test something out and for a new user its going to be quite a lot of

Jenkins Pipeline (and Docker)

2017-04-26 Thread Max Schindler
At this moment i have the following setup 1) `Jenkins` (running in `docker`) 2) A Cloud configured in jenkins, that is configured to use docker. (Including an image which is a docker template). So i can build on `slaves` 3) A `Multipipeline`configured in jenkins 4) When this build runs it automat

Re: Building docker images with declarative pipeline

2017-04-26 Thread Max Schindler
I would also be very interested in this. @Thomas: How are you proceeding with your topic? Maybe we can share our experience and help each other on this topic? -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and

pipeline: parameters

2017-04-26 Thread Kenneth Johansson
What I want is to have the configuration and build instruction in the actual project repo and to do that it looked like I should do a pipeline project. But the documentation is not very easy to follow. So my first problem is how to generate the built parameters dynamically. I made a simple tes

Re: Chaining freestyle with a Pipeline on the same Git hash?

2017-04-26 Thread Christopher Orr
Hi there, On Wed, 26 Apr 2017, at 08:40, Dan Tran wrote: > I have no issue chaining 2 freestyle jobs the same git commit, however, > not possible from FS to Pipeline which throws exception. Is there any one > successfully doing so? It's not entirely clear to me what you're asking — how exactly

RE: How to trigger job when a new patchset is uploaded for an existing change

2017-04-26 Thread Matthew.Webber
I’ve not seen this problem; our Gerrit triggers are working ok for new patchsets. What version of Jenkins, Gerrit trigger, and Gerrit, are you using? Your description of you configuration is a bit hard to understand, maybe you could send a screenshot of the full Gerrit configuration from the job?