Help with github plugin - SSL issue with custom CA

2016-08-15 Thread Robert Hafner
I have a fresh install of Jenkins that will not connect to my Github Enterprise instance. We are using an in house CA with our custom TLD (so https://github.acme) and aren't having any other SSL troubles outside of this. Does anyone know if the CA certs need to be installed in a specific way

Re: How do I use the Jenkins CLI commands for Credentials Plugin?

2016-08-15 Thread Brandon R
I've been looking into this as well and made a little progress by digging around https://github.com/jenkinsci/credentials-plugin For store, I used "system::system::jenkins" like in their tests. For domain I tried variations on the word "global" but none worked. I then tried underscore '_' as

LDAP groups and Role Based Authorization no playing nice.

2016-08-15 Thread Michael Lasevich
I am trying to do something I thought I have done many times before, but it is not working now - using Roles based Authorization with LDAP authentication and specifically LDAP Groups I believe I have LDAP Authentication setup and working for both users and groups I believe I have Role based

Pipeline: Can I use html in currentBuild.description?

2016-08-15 Thread Greg Smith
Hi, Is there some simple way to allow html in currentBuild.description? Seems like when I write any html tags in that string, they are all automatically escaped. I can see where it would be important to do this by default for security purposes -- but as we have control over our github

Re: Git ChangeLog, how to change base branch it computes from?

2016-08-15 Thread Eric Crahen
Thanks, I'll try to find that setting and figure out a way to set that programatically. My end goal is that a large number of people just install the plugin and the right thing happens w/o manually configuring lots of jobs correctly, so that why I wanted to do it in code. Thanks for the pointer.

Re: Not able to trigger Github Organization folder job automatically

2016-08-15 Thread Patrick Wolf
Do you know if the Push Event webhook is received by Jenkins when you create the Jenkinsfile? "Does the plugin expect the repo to have a Jenkinsfile at the time of creation itself?" Just the opposite. The plugin expects the repo to be empty at the time of creation unless the repo is created by a

Re: Not able to trigger Github Organization folder job automatically

2016-08-15 Thread Harsha Adiga
Hi Patrick, Thanks for the quick reply. Yes I am creating an empty repository without Jenkinsfile at first and then adding the Jenkins file as a new file commit. I was expecting my job to get triggered at this point when I add the Jenkinsfile. But it is not doing that. Am I missing something

Re: Git ChangeLog, how to change base branch it computes from?

2016-08-15 Thread Mark Waite
The git plugin has an "Additional Behaviour" which tells the plugin to calculate changes from a base branch, rather than calculating the changes from the preceding build. Could you use that instead of writing code? Mark Waite On Mon, Aug 15, 2016 at 11:11 AM Eric Crahen

Re: Not able to trigger Github Organization folder job automatically

2016-08-15 Thread Patrick Wolf
How are you creating the Jenkinsfile? When a new repository is created the repository trigger will be sent but the Github Organization Folder plugin won't do anything at that point because it assumes the repository is empty. If the repository is created from a fork and a Jenkinsfile is already

Not able to trigger Github Organization folder job automatically

2016-08-15 Thread Harsha Adiga
I am doing a POC using GitHub Organization Folder plugin. I have created a job selecting Git Hub Organization as the type. I have configured it to scan my org using the personal access token that I have generated in my Github account. I am using my Enterprise Git hub. I have also created a

Re: Pipelines, github fork models and the Jenkinfile

2016-08-15 Thread Jesse Glick
On Sunday, August 14, 2016 at 1:28:50 AM UTC-4, Arvind Jayaprakash wrote: > > A world wherein the following can happen is god enough >> > >- "jenkins team" is able to offer pipelines with restricted set of >configuration points >- "development team" exercises these configs through a

Git ChangeLog, how to change base branch it computes from?

2016-08-15 Thread Eric Crahen
Hey, To support a PR-building workflow, I have a plugin which sets the branch used by the Jenkins workspace, to something I configure (which is the pr-branch). This happens by using the GitSCM API, a very abbreviated version of what happens is this: GitTool tool =

Re: Passing the artifacts of the current pipeline into a downstream job

2016-08-15 Thread Greg Smith
Never mind -- I seem to have found the solution to this: 1) Set the freestyle project to use instead select the artifacts of "The upstream job that triggered this job" 2) Set the wait on the build value to false, so that the pipeline build does not wait on running the other freestyle build

How to best define .m2 local maven repo path in multi-branch projects/Jenkinsfile?

2016-08-15 Thread ST
Hi! I am migrating our build pipeline from a set of maven-type jobs to a multi-branch project defined in a Jenkinsfile, and I am wondering how people solve the .m2 problem ? I cannot see any way to configure every job/branch to have its own private .m2 repo through a comfortable boolean config

Passing the artifacts of the current pipeline into a downstream job

2016-08-15 Thread Greg Smith
Hi, I am trying to build a workflow where one a pipeline job passes its artifacts into another (old style) job in Jenkins that we already have defined. The freestyle job takes 2 parameters: The project name, and the build number. It then copies the artifacts from "Project" / "Build Number"

Re: New Pipeline Maven plugin

2016-08-15 Thread Cyrille Le Clerc
Hello ok999, > Assuming maven was already installed in the node & have the files configured (settings.xml, local repo etc) from the TOOLS setting of jenkins.. > Will this plugin override those settings? Yes, "withMaven(){}" will override all the settings that you define with the wrapper. We

Re: [pipeline][groovy postbuild] Groovy manager access

2016-08-15 Thread jerome
If anybody ever wonder it's the following: *if(currentBuild.result == '**SUCCESS')* *{* manager.addShortText("${APPLY_TAG}") } Not sure the isBetterOrEqualTo() is still available somewhere. On Wednesday, July 13, 2016 at 11:44:03 AM UTC-4, jer...@bodycad.com wrote: > > Hi, > > I try to

Named Child Folder Health Metric

2016-08-15 Thread Rob Oxspring
Hi all, I've been playing around with multibranch projects lately and noticed the only folder metric available by default is "Worst Child Health Metric" For us the only branch that we really care about is the master branch so I wondered if anybody had a folder metric that would take that named

Re: New Pipeline Maven plugin

2016-08-15 Thread Cyrille Le Clerc
Hello Will, Fingerprint and reports rendering are things we would like to see in forthcoming releases of this plugin. We hope that the community will help on this kind of feature. For the moment, we unfortunately have to use the following verbose steps: step([$class: 'ArtifactArchiver',

ECR authentication issues

2016-08-15 Thread Daniel Guisinger
Hey guys, I'm back with another credentials issue. I'm starting to think my copy of Jenkins is possessed. (Last week I couldn't get the Jenkins Git plugin to authenticate using the http credentials stored in Credentials, but for some reason ssh credentials worked) I have several projects,

RE: Best practices: many distinct jobs vs parameterized jobs

2016-08-15 Thread Ginga, Dick
FWIW, I have implemented a 2-tier build approach where the first job prepares the source code workspace, pulling from whatever SCM. The second tier is the builder. It takes, as one parameter, that is the $WORKSPACE of the tier 1 job, performs all the building, testing, scanning in THAT job’s

Re: Parameterized build, REST, one parameter with new value rest with default

2016-08-15 Thread thomas . lehmann
Yes, basically you could retrieve the job XML parsing for the parameter definitions storing the default values and then changing the values you want. Your function could also stop if not all mandatory fields are set. I wrote my own jenkins controller (cannot publish the moment) but that one is

Re: The option to “Launch slave agents via Java Web Start” is missing from new node configuration

2016-08-15 Thread Daniel Beck
Changing DescriptorVisibilityFilter would likely have unintended side effects. Should probably not use Descriptor visibility, but just have a warning in the JNLP specific config if the agent port is disabled. I'm thinking of something similar to Maven build step's (or possibly Maven Project's)

Re: The option to “Launch slave agents via Java Web Start” is missing from new node configuration

2016-08-15 Thread Stephen Connolly
Yep, that would require changes to how descriptor visibility filters work though... so likely not going to change for the next couple of weeks (unless somebody else picks it up that is) On 15 August 2016 at 02:02, Ryan Campbell wrote: > I agree. This is impossible to

Persistent connection between slave and master when connecting through JNLP + command line

2016-08-15 Thread Custodia
I have just setup a powershell script for windows slaves that install everything required for builds and automatically connects the slave to it's master based on the parameters given when the script was executed. This works fine until I close the powershell window or need to reboot the

Parameterized build, REST, one parameter with new value rest with default

2016-08-15 Thread Daniel Olausson
Hi, I have a job that I would like to trigger via REST where I have one parameter that I want to change every time and the other ones I would like to use the default values for. If I do a POST to /build it just ignores the default values and set them to empty. If I do a post to

Re: Multibranch Pipeline: Using notifyCommit does not indicate an SCM change

2016-08-15 Thread Sverre Moe
Created https://issues.jenkins-ci.org/browse/JENKINS-37406 mandag 15. august 2016 06.30.34 UTC+2 skrev James Dumay følgende: > > Hi Sverre, > > Hmm, that doesn't sound like we are doing the right thing there. Could you > please provide us with a detailed bug report on >