Re: Jenkins 1.651.2: Parameterized Trigger Plugin Not Passing Parameters To Downstream Job

2016-05-13 Thread Mark Waite
Are you sure that the downstream job is defined to have an explicit parameter named "BUILD_NUM"? In my case, I was relying on the upstream job to inject the variable from the upstream job into the downstream job, even though the downstream job did not declare that it accepted that parameter. When

Re: Pipeline Multi-branch different options based on branch

2016-05-13 Thread Richard Bywater
Odd - on my instance it's on the configuration page of the top level "folder" instance. (Sorry can't be more precise as it's Saturday so not in front of machine :) ) Richard On Sat, 14 May 2016 1:10 am Mike Caspar wrote: > Looked for that option. > > Repos are automatically scanned for Jenkiins

Re: how to declare a Pipeline global var with named parameter

2016-05-13 Thread Nicolas Geraud
Here is how to write my function : def call(params) { def mvnArgs = (params == null || params.mvnArgs == null) ? ["-U", "clean", "deploy"] : params.mvnArgs boolean defaultScm = ( params == null || params.url == null || params.branch == null ) node { stage "Checkout"

Re: Jenkins 1.651.2: Parameterized Trigger Plugin Not Passing Parameters To Downstream Job

2016-05-13 Thread Mark Bretl
Hi Mark, In my job, my upstream job was passing downstream the following using the predefined parameter: BUILD_NUM=1605.132 In the downstream job I use the parameter as a build_name, as well as an environment variable. The first issue is that when trying to set the build name using the BUILD_N

Re: Searching for a Jenkins plugin

2016-05-13 Thread Baptiste Mathus
You may want to consider using the Job DSL plugin for example. That way, you could DSL script the steps in question, and just factor them in the code. My 2 cents 2016-05-11 14:24 GMT+02:00 Stephane : > Shell tasks at the moment but in the future, there might be more types of > Build Tasks. > > I

Re: Chain builds together, but still need to be conditional on source control change

2016-05-13 Thread Baptiste Mathus
How do you handle the fact that even with Freestyle job, if the workspace gets wiped out or has an issue, you'll get a build even if the source didn't change? Is that gonna be a big issue? This really sounds like a job for the pipeline plugin. Handling in your case 12 different jobs and that kind

Git polling with multiple repo's and branches result in redunant jobs being queued

2016-05-13 Thread Brent Kilgore
My project is split between 3 different git repos. In each repo, I have a shared development branch and the global upstream QA branch. If there are changes in any of these 6 places, then i want a single build to launch. The problem i am having is when changes are discovered in more than one

Re: Jenkins 1.651.2: Parameterized Trigger Plugin Not Passing Parameters To Downstream Job

2016-05-13 Thread Mark Waite
I don't know that another JIRA issue is the solution. I found that passing parameters downstream works (at least for me) if the downstream job has a parameter named which matches the parameter being passed from the upstream job. Could you try the same thing in your case to see if it resolves it f

Jenkins 1.651.2: Parameterized Trigger Plugin Not Passing Parameters To Downstream Job

2016-05-13 Thread Mark Bretl
Hi All, I have run into an issue with the Parameterized Trigger Plugin after upgrading to the latest LTS build 1.651.2, where the triggered parameters (using Predefined) are not being passed to the downstream job. I read the security notes and found that SECURITY-170 could be affecting my issue

Re: GIT and Jenkins for dummies

2016-05-13 Thread Mark Waite
A google search returned "Jenkins Git Integration" at https://www.youtube.com/watch?v=ISAUsBSI8G0 I created the "Jenkins in Five Minutes" video some years ago that is hosted on youtube as well. If those aren't what you're seeking, you could try Harpreet Singh's blog posting https://www.cloudbees.

Re: Jenkins Pipeline Plugin - how to inject global passwords?

2016-05-13 Thread Brian Ray
Found a wrinkle to masking secrets in the log, in one of my edge cases Pipeline. I'm trying to determine whether this edge case warra

Remote Control of dynamically created Windows VM

2016-05-13 Thread Francois Marot
Hello all, I'd like your advice on dynamically created Windows instance (through the "Cloud VSphere Plugin" but whatever). It's not directly Jenkins-related but maybe you have advice on tool/plugins to use with Jenkins. How can we then control the newly instanciated Windows to deploy and run s

using slack notifications to multiple teams/channels

2016-05-13 Thread Kevin
per this post - https://github.com/jenkinsci/slack-plugin/issues/111 I should be able to configure my slack settings to be able to send build notifications to multiple teams. but there is nothing in the help section or on the slack plugin page - https://wiki.jenkins-ci.org/display/JENKINS/Slack+

jenkins console output creating report with link to absolute system path

2016-05-13 Thread Sreenivasulu Gajula
Hi, In the console output of the job, i am getting creating report with link to absolute system path i.e. file:///Users/go/jenkins/workspace/job33/module-data/build/reports/tests/debug/index.html . this link does not work as this being run in slave. How to make it to display the link as

Re: Bitbucket plugin bug after Jenkins upgrade to 2.3

2016-05-13 Thread Victor Velasquez
I had a similar issue at the end of the jobs: FATAL: org.acegisecurity.providers.UsernamePasswordAuthenticationToken cannot be cast to org.jenkinsci.plugins.BitbucketAuthenticationTokenjava.lang.ClassCastException : or

Re: Pipeline Multi-branch different options based on branch

2016-05-13 Thread Mike Caspar
Awesome. Thanks ! Mike On 16-05-13 09:21 AM, Nigel Magnay wrote: What we do is look at what the branch name is in the Jenkinsfile itself. I.E: if( branchName.equals("master") ) { // deployment steps } On Fri, May 13, 2016 at 12:24 AM, Mike Caspar mailto:mikecanbefo...@gmail.com>> wrote:

Re: Pipeline Multi-branch different options based on branch

2016-05-13 Thread Nigel Magnay
What we do is look at what the branch name is in the Jenkinsfile itself. I.E: if( branchName.equals("master") ) { // deployment steps } On Fri, May 13, 2016 at 12:24 AM, Mike Caspar wrote: > > I am working on a pipeline that does Test/Deploy after a commit. > > That's all cool! > > However.

Re: Pipeline Multi-branch different options based on branch

2016-05-13 Thread Mike Caspar
Looked for that option. Repos are automatically scanned for Jenkiinsfile, then added (with their branches) to my Jenkins instance. I can't find that option anywhere? Could you point me to where I might find it ? Sound like it might work. Mike On 16-05-12 09:57 PM, Richard Bywater wrote:

Re: Jenkins using a lot more resources after upgrade

2016-05-13 Thread Ugo Bellavance
On Thursday, May 12, 2016 at 2:01:41 PM UTC-4, Raymond Accary wrote: > > Hi, > If it helps, you might avoid the crash by installing the monitoring > plugin, and triggering garbage collection once the memory is approaching > the maximum allocated heap size. This is a workaround until someone is

RE: Polling without workspace failed to wake up offline slave node

2016-05-13 Thread John Mellor
I always have this issue whenever the master has been taken offline and restarted, and occasionally when recovering from a slave connectivity issue. I have to walk through the slaves and manually bring them online once before they work correctly. There are multiple bugs in the way that Jenkins

GIT and Jenkins for dummies

2016-05-13 Thread David Montgomery
Hi, I am new do Jenkins 2 and finding configuring git my no stretch of the imagination straightforward. Where is the "I am stupid to live documentation?" I am on a standard ubuntu 14.04 server, using github and my ssh keys work. Docs on how to setup server with git so far are terrible with d

Jenkins failing to take update or CHeck out fresh copy of Code from SVN

2016-05-13 Thread Ravi Mangala
Hi Folks, I am new to jenkins. I am working on a project but jenkins failing to take update from SVN every time I am seeing the old code. After restarting the Jenkins it takes out the fresh code. Thanks -- You received this message because you are subscribed to the Google Groups "Jenkins Use

Jenkins Pipeline: Plugins that doesn't yet support it

2016-05-13 Thread Sverre Moe
Jenkins Pipeline (former Workflow) looks like a great way to create a specialized build workflow that the standard project types can't do. Currently I am using Multi-configuration projects leveraging templates (Template Plugin) for similar build logic among all projects. Not all plugins have bee

Re: Upgrade to Jenkins 2 failed

2016-05-13 Thread Marcin Wieczorek
Ran into the same problem and finally found this: https://issues.jenkins-ci.org/browse/JENKINS-33776 That solved it for me. Marcin On Thursday, May 12, 2016 at 2:48:45 AM UTC-7, David Aldrich wrote: > > Hi > > I have tried to upgrade our Jenkins test server from 1.656 to 2.3 by > copying the

Re: Bitbucket plugin bug after Jenkins upgrade to 2.3

2016-05-13 Thread Herbert Fischer
Done. https://issues.jenkins-ci.org/browse/JENKINS-34792 thanks On 13 May 2016 at 11:30, Daniel Beck wrote: > > > On 13.05.2016, at 11:15, herbert.fisc...@crossengage.io wrote: > > > > Any idea what it is? > > Please file a bug so this can get looked at. > > In the meantime, set the system prop

Re: Upgrade to Jenkins 2 failed

2016-05-13 Thread Stephen Connolly
When you upgrade if using the built in jetty the feature is removed in the newer code. If you were using AJP then you need to switch to Tomcat as your servlet container. On 13 May 2016 at 10:34, David Aldrich wrote: > > However, some of the native packages enabled it by default for no real > re

Re: Upgrade to Jenkins 2 failed

2016-05-13 Thread Daniel Beck
> On 13.05.2016, at 11:34, David Aldrich wrote: > > Please tell me how I would disable/remove it. Depends on how you installed Jenkins. https://wiki.jenkins-ci.org/display/JENKINS/Native+Packages should explain where the config file is. -- You received this message because you are subscribe

Re: Failed to connect to repository : Remote host closed connection during handshake

2016-05-13 Thread Philipp Meier
Which Java version are you running? Try to upgrade to the latest Java version. Am Mittwoch, 9. Dezember 2015 05:23:01 UTC+1 schrieb Sharon Francis: > > Im getting this error after some updates, not sure how to resolve this > issue. Pls help. Have attached the screenshot along. > -- You receive

RE: Upgrade to Jenkins 2 failed

2016-05-13 Thread David Aldrich
> However, some of the native packages enabled it by default for no real reason, > and in that case it suffices to just disable/remove the option. Please tell me how I would disable/remove it. David -- You received this message because you are subscribed to the Google Groups "Jenkins Users"

Re: Bitbucket plugin bug after Jenkins upgrade to 2.3

2016-05-13 Thread Daniel Beck
> On 13.05.2016, at 11:15, herbert.fisc...@crossengage.io wrote: > > Any idea what it is? Please file a bug so this can get looked at. In the meantime, set the system property hudson.model.User.SECURITY_243_FULL_DEFENSE to false, that should work around it. -- You received this message beca

Re: Upgrade to Jenkins 2 failed

2016-05-13 Thread Daniel Beck
> On 13.05.2016, at 10:15, David Aldrich wrote: > > Are there any hints on how to resolve this condition, i.e. where an AJP port > is used in a Jenkins 1.x installation, but we want upgrade to 2.x? If you're actually using AJP, follow Stephen's advice. However, some of the native packages e

Bitbucket plugin bug after Jenkins upgrade to 2.3

2016-05-13 Thread herbert . fischer
Hi, I started getting these errors inside a Maven build, after the upgrade to 2.3: ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-us...@googlegroups.comjava.lang.ClassCastException :

Re: Upgrade to Jenkins 2 failed

2016-05-13 Thread Stephen Connolly
You'd need to deploy on a servlet container that has AJP support and supports servlet 3.1... unsure if Tomcat 8+ still support AJP but that would seem to be where you'd need to start On 13 May 2016 at 09:15, David Aldrich wrote: > Hi Daniel > > > My guess is that your service config file defines

Run build on Triggerd job only if sources have changed

2016-05-13 Thread Matthieu Vincent
HI all, I'd like to know if it is possible to avoid a job to build if there are no change on source. In my case, I've a job triggered by another one and I'd like this job to build (and so to deploy in my maven repo) only if sources managed by this job have build changed. In other cases, job ju

RE: Upgrade to Jenkins 2 failed

2016-05-13 Thread David Aldrich
Hi Daniel > My guess is that your service config file defines an AJP port, which causes > startup to fail. See the 2.0 changelog. Are there any hints on how to resolve this condition, i.e. where an AJP port is used in a Jenkins 1.x installation, but we want upgrade to 2.x? The changelog doesn

Re: Failed to connect to repository : Remote host closed connection during handshake

2016-05-13 Thread 'Björn Pedersen' via Jenkins Users
Hi, Either that (seems not to be the case) or the owner is wrong. Make sure this is owned by the same user that jenkins is running as. Björn -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receivin