Re: Allow a build to be triggered only by a Pipeline

2018-12-17 Thread Stephen Connolly
I’m not sure if there is a plugin that lets you do this... I see two solutions: 1. In your pipeline, check if the cause is an upstream job cause and abort if not (functionality will be correct, but run the risk of lots of aborted builds) 2. Write a plugin. Your plugin will need two parts: a JobPr

Re: Start multi-branch indexing from SCM notification

2018-09-13 Thread Stephen Connolly
Brack indexing is basically a smart polling, and *should* be triggered off scm notifications However Subversion has not been updated in multibranch support for a good while now. On Fri 7 Sep 2018 at 02:42, Daniel Becroft wrote: > Hi, > > I have a multi-branch pipeline setup to initiate a branch

Re: List of git branches using Jenkinsfile parameters

2018-02-21 Thread Stephen Connolly
On 21 February 2018 at 02:03, wrote: > I want to selectively build branches. So anything that is committed to > master is built automatically, but in order to build a specific branch a > user has to run "build with parameters" and choose the branch to build > > WHY would you want to use multibran

Re: specifying branches to build for a multi-branch pipeline

2018-01-23 Thread Stephen Connolly
Wildcard branches filter trait is the basic way... You probably want https://wiki.jenkins.io/display/JENKINS/SCM+Filter+Branch+PR+Plugin though (assumes your SCMSource has implemented trait support) On Tue 23 Jan 2018 at 19:49, ziffusion wrote: > Hi > > Is there a way get the multi-branch pipel

Re: Tool URLs on master vs agent for pipeline jobs

2018-01-22 Thread Stephen Connolly
On Tue 23 Jan 2018 at 01:32, Guy Knights wrote: > I have a bit of an issue I've run into. I've set up git mirrors in > separate subnets and would like my pipeline jobs to use these mirrors as > the pipeline job source. Until now, we've had a central gitlab repo which > we allowed access to throug

Re: Webhooks in hosted gitlab + local jenkins setup

2018-01-22 Thread Stephen Connolly
Try ngrok. Run it on the Jenkins Server and it will give you a public url for the webhook On Mon 22 Jan 2018 at 20:29, Lorem Ipsum wrote: > Couldn't forward the ports for inbound traffic > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. >

Re: Access github pull request source branch name from Jenkinsfile

2018-01-20 Thread Stephen Connolly
See https://github.com/jenkinsci/branch-api-plugin/blob/master/src/main/java/jenkins/branch/BranchNameContributor.java CHANGE_BRANCH is probably what you are after On Sat 20 Jan 2018 at 11:53, Herb Brewer wrote: > Hi, > > I'm using Jenkins ver. 2.89.3 , is there any way > t

Re: Bitbucket Branch Source Plugin - trigger build on PR when merge branch is updated

2018-01-14 Thread Stephen Connolly
On Sun 14 Jan 2018 at 07:10, Matthew Ceroni wrote: > I am using the Bitbucket Branch Source Plugin ( > https://wiki.jenkins.io/display/JENKINS/Bitbucket+Branch+Source+Plugin). > Branches and PR are triggering builds when commits are pushed. However, > what doesn't happen is when the merge branch

Re: "Build whenever a SNAPSHOT dependency is built" with "Bitbucket Team/Project"

2018-01-09 Thread Stephen Connolly
#x27;) { >steps { > script { > properties([pipelineTriggers([snapshotDependencies()])]) > } > withMaven( > mavenLocalRepo: '.repository' > ) { > bat "clean deploy" > } &

Re: "Build whenever a SNAPSHOT dependency is built" with "Bitbucket Team/Project"

2018-01-08 Thread Stephen Connolly
On Tue 9 Jan 2018 at 07:16, 'Richard Hierlmeier' via Jenkins Users < jenkinsci-users@googlegroups.com> wrote: > > I tried to setup a bunch of maven jobs as "Bitbucket Team/Project". In the > section "Scan Organization Folder Triggers" I selected the option "Build > whenever a SNAPSHOT dependency i

Re: Bitbucket Branch Source URI

2018-01-08 Thread Stephen Connolly
Define the list of servers in the global config. Once you have more than one server then a drop-down will appear to allow selecting On Tue 9 Jan 2018 at 07:17, Andrew Spiers <7and...@gmail.com> wrote: > Hi, I'm trying to use the Bitbucket Branch Source plugin to scan for jobs > in a bitbucket ser

Re: Jenkins plugin to perform UI search

2018-01-04 Thread Stephen Connolly
How would you do this outside of Jenkins from the command line? It will be much easier to test and debug if you can use a command sequence to do the test. Try not to encode the How of your build in Jenkins... let Jenkins be the coordinator that decides Which of the Hows to invoke On Thu 4 Jan 20

Re: Two separate GitHub Organizations used with same GitHub Branch Source Plugin configuration results in only one job getting triggered per PR

2018-01-04 Thread Stephen Connolly
On Thu 4 Jan 2018 at 18:11, Ian Vernon wrote: > I had asked previously about getting two jobs triggered from GitHub when a > PR is opened. Each job uses a distinct Jenkinsfile. This is so multiple > sets of tests can be triggered as separate jobs when a PR is opened. That > thread can be found he

Re: github quota limit when scanning with the addition of tags

2018-01-04 Thread Stephen Connolly
nkinsfile could just be deleted from > github, but it doesn't fix the problem, just delays it a couple weeks. > > > On Thursday, 4 January 2018 15:27:37 UTC+1, Stephen Connolly wrote: >> >> If you know those tags will never match, you could add a filter to >>

Re: github quota limit when scanning with the addition of tags

2018-01-04 Thread Stephen Connolly
rent quota has 675 remaining (2 over budget). > Next quota of 5000 in 6 min 50 sec. Sleeping for 26 sec. > 19:05:36 GitHub API Usage: Current quota has 675 remaining (26 under budget). > Next quota of 5000 in 6 min 23 sec > > > > > > On Thursday, 4 January 2018 15:0

Re: github quota limit when scanning with the addition of tags

2018-01-04 Thread Stephen Connolly
s issue will impact others as they begin >> to implement the ability to scan tags even with a 24 hour interval. >> >> >> >> Also, the recommendation in the UI for the interval setting is: >> Subsequent commits should trigger indexing anyway and result in the &

[ANN] Basic Branch Build Strategies plugin

2018-01-04 Thread Stephen Connolly
If you are using Multibranch, you may be interested in: https://github.com/jenkinsci/basic-branch-build-strategies-plugin Checkout the documentation: https://github.com/jenkinsci/basic-branch-build-strategies-plugin/blob/master/docs/user.adoc This extension plugin will enable things like: * No

Re: Releasing with declarative pipeline

2018-01-04 Thread Stephen Connolly
On Thu 4 Jan 2018 at 06:57, Ari Maniatis wrote: > I think that's a great idea. The main downsides I see are: > > * the multibranch plugin (which I use already) is pretty flaky. I find it > will sometimes reset all the branches to be enabled even though I try to > disable old branches to get them

Re: github quota limit when scanning with the addition of tags

2018-01-03 Thread Stephen Connolly
On 3 January 2018 at 14:41, Stephen Connolly < stephen.alan.conno...@gmail.com> wrote: > This is the limitation of 5000 requests per hour. > > Ideally we would look into caching the github responses so that duplicate > requests could be eliminated... but my preliminary analysis

Re: github quota limit when scanning with the addition of tags

2018-01-03 Thread Stephen Connolly
This is the limitation of 5000 requests per hour. Ideally we would look into caching the github responses so that duplicate requests could be eliminated... but my preliminary analysis shows that would basically save about 50% of the requests. The recommendation for "*Scan Organization Triggers* -

Re: Trigger separate jobs with two distinct Jenkinsfiles

2017-12-13 Thread Stephen Connolly
Use a shared library to define the steps with a common name. Each branch will just have a Jenkinsfile of ourStandardBuild(); Then you define two org folders. One for the new build and the other for the old build. Add the respective shared library to each org folder. See Watch Me Code Episodes

Re: Disable withMaven publishers default configuration

2017-12-13 Thread Stephen Connolly
Is prod running an older version of the plugin. Disabling is only a recent feature. Also see https://issues.jenkins-ci.org/plugins/servlet/mobile#issue/JENKINS-46785 for a related request about being able to disable default publishers so that options only specifies the ones you want configured. (I

Re: Bootstrap Jenkins job creation

2017-12-12 Thread Stephen Connolly
I (being biased) would think a better approach is to use the organization folder approach of pipeline multibranch. If you want to see how this works, I did a video series on enabling this for the Apache Maven project... end result: https://builds.apache.org/view/M-R/view/Maven/job/maven-box/ Eve

Re: Using the Branchname only, instead the full path only

2017-12-12 Thread Stephen Connolly
echo "${BRANCH_NAME.replaceAll('^.*/','')}" or sh 'echo "${BRANCH_NAME}" | sed -e "s:^.*/::"' Note the second one needs the careful quoting so that the shell does the expansion On 12 December 2017 at 13:04, Paul McGregory wrote: > Hi Everybody. > > > I am using multibranch pipeline. > > The d

Re: Is there a Jenkins Plug In for this Or Can I Create My Own Or ...

2017-12-10 Thread Stephen Connolly
On Fri 8 Dec 2017 at 12:36, ABostonGal ABostonGal wrote: > I see I can add a freestyle project and add a windows batch file > command... looking into but welcome ideas! > So how can you best test/debug the backup/restore/archive functionality? If you use a Jenkins specific step, the only way to

Re: Promote build when... option not shown in job config

2017-12-05 Thread Stephen Connolly
On Tue 5 Dec 2017 at 21:59, Chris White wrote: > Are there any requirements on a job for when the 'Promote build when...' > is shown / hidden for a job in Jenkins? > > I have the plugin installed (2.31), Jenkins has been restarted but for my > given job (a pipeline scm job) > Pipeline does not c

Re: Translation between declaritive pipleline and groovy pipeline

2017-12-05 Thread Stephen Connolly
On 5 December 2017 at 09:30, Daniel Butler wrote: > If you use currentBuild.currentResult (was added a few months ago IIRC) > you get a value that will never be null. > but it may not be completely correct. https://gitbox.apache.org/repos/asf?p=maven-jenkins-lib.git;a=blob;f=vars/asfMavenTlpStd

Re: Jenkins Multibranch Project Ignoring Branch That Was Deactivated Then Removed But Now We Need It Back

2017-12-02 Thread Stephen Connolly
On Sat 2 Dec 2017 at 08:37, wrote: > We have a Jenkins multibranch project that tracks a bunch of private > repositories. One of the branches (development) was somehow disabled in > Jenkins. There was a warning in the UI and the name of the branch had a > line through it. We could not re-enable t

Re: Triggering Jenkins Multibranch Pipeline by raising a Pull Request in GitHub

2017-11-29 Thread Stephen Connolly
On Wed 29 Nov 2017 at 13:27, Ramanathan Muthaiah wrote: > So I need to trigger this Multibranch pipeline whenever there is a Pull >> Request raised on GitHub. I want this pipeline to trigger automatically >> when there is a PR on GitHub. >> What do I need to do to achieve this approach? >> Is it

Re: Git push to specific branch on multibranch pipelines builds all branches

2017-11-22 Thread Stephen Connolly
On 22 November 2017 at 15:49, Stephen Connolly < stephen.alan.conno...@gmail.com> wrote: > > On 22 November 2017 at 15:17, Harlan Barnes > wrote: > >> Hello Jenkins Friends, >> >> I'm having a problem getting the configuration correct for my >&

Re: Git push to specific branch on multibranch pipelines builds all branches

2017-11-22 Thread Stephen Connolly
On 22 November 2017 at 15:17, Harlan Barnes wrote: > Hello Jenkins Friends, > > I'm having a problem getting the configuration correct for my multi-branch > pipeline. Here are the details > > * I have a Jenkins job configured with a simple Git Branch Source with the > following options: > * Dis

Re: Existing credentials are not available for multi-branch jobs

2017-11-21 Thread Stephen Connolly
On 21 November 2017 at 16:34, itchymuzzle wrote: > Looking at the documentation [https://go.cloudbees.com/ > docs/cloudbees-documentation/cje-user-guide/index.html#bitbucket] > > It doesn't mention what permissions to select when creating an app > password. > Suck it and see... try with everythi

Re: Existing credentials are not available for multi-branch jobs

2017-11-20 Thread Stephen Connolly
As before: This only accepts username/password credentials as it accesses the Bitbucket api (which is https and http doesn’t understand ssh keys) The password doesn’t have to be a password, it can be an api token... but the credentials must be of type username password On Mon 20 Nov 2017 at 20:

Re: How to disable Jenkins script console?

2017-11-13 Thread Stephen Connolly
You could use an init.groovy script to remove the management link extension from the list of management link extensions. That will remove access to the HTML page. Keep in mind that there is a CLI command that offers the same functionality, so you'd need to cull that one also. There may also be othe

Re: Multibranch pipeline - Gitlab CE - Hook

2017-11-09 Thread Stephen Connolly
I believe the plan is to merge https://github.com/Argelbargel/gitlab-branch-source-plugin into the gitlab plugin. If you want to help Argelbargel adapt that code for SCMTrait / behaviours, that is probably the best plan On 9 November 2017 at 02:14, Samuel Mutel wrote: > Hello, > > I would like

Re: Jenkins: remote windows build slave

2017-11-08 Thread Stephen Connolly
similar and much better for security. On Wed 8 Nov 2017 at 07:35, Jeeva Chelladhurai wrote: > I have ssh port open, Is it possible to setup SSH slave on Windows? > > - Jeeva > > On Wed, Nov 8, 2017 at 12:44 PM, Stephen Connolly < > stephen.alan.conno...@gmail.com> wrote: > &

Re: Jenkins: remote windows build slave

2017-11-07 Thread Stephen Connolly
If Jenkins is served over https and you only have jnlp4 protocol enabled, and you lock down security on the master, it should be. If somebody gets their hands on an agent secret, they can take over your master... My masters have that port on vpn network only. On Wed 8 Nov 2017 at 06:31, Björn Ro

Re: [ANN] GitHub Branch Source 2.3.0 now with tag discovery

2017-11-07 Thread Stephen Connolly
-07 15:47 GMT+01:00 Stephen Connolly < > stephen.alan.conno...@gmail.com>: > >> It took a long time to get this merged, but the 2.3.0 release now >> supports tag discovery. >> >> Release notes are here: >> https://wiki.jenkins.io/display/JENKINS/GitHub

Re: Multibranch not able to use existing credential, or create a new one

2017-11-07 Thread Stephen Connolly
On 7 November 2017 at 13:32, itchymuzzle wrote: > > This only accepts username/password credentials > > Ok, but ... > > Bitbucket has my public key, and the Jenkins credential has my private key. > And accessing the Bitbucket REST API only works over http (because it's REST)... so having the key

Re: Multibranch not able to use existing credential, or create a new one

2017-11-07 Thread Stephen Connolly
On Tue 7 Nov 2017 at 20:01, itchymuzzle wrote: > Looking back at my notes I am not using bitbucket App password, that item > must have been left over from my very first attempts. So my bad on that > item. > > But I still have the original issue, that when I am creating a new > multibranch job I

[ANN] GitHub Branch Source 2.3.0 now with tag discovery

2017-11-07 Thread Stephen Connolly
It took a long time to get this merged, but the 2.3.0 release now supports tag discovery. Release notes are here: https://wiki.jenkins.io/display/JENKINS/GitHub+Branch+Source+Plugin Party! -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To un

Re: Circular dependencies in plugins

2017-11-03 Thread Stephen Connolly
On Fri 3 Nov 2017 at 19:21, CLOSE Dave wrote: > >> Every one of the Pipeline plugins, all 23 of them, claim to be > >> dependent on some other plugins. None offer the option to disable. > >> The chain seems endless. And many of the plugins asserted to be > >> dependent are ones I want to keep, su

Re: [Event]: Bugs wanted

2017-11-01 Thread Stephen Connolly
On 1 November 2017 at 13:30, Alyssa Tong wrote: > Hi All, > > Out of sheer fun, plus getting a bug fixed, Stephen Connolly > <https://github.com/stephenc> has signed up to do a live bug fix at the > upcoming Jenkins Online Meetup > <https://www.meetup.com/Jenkins-onl

Re: [hard] problem building github tags

2017-11-01 Thread Stephen Connolly
ound > Met criteria > No changes detected: test (still at b224b0276df138020efed0d1545f97 > c4bff294cd) > > 3 branches were processed > > Checking pull-requests... > > Getting remote pull requests... > > 0 pull requests were processed > > Finished exam

Re: Multibranch Pipeline - GIT - SSH authentication

2017-10-26 Thread Stephen Connolly
On 26 October 2017 at 10:34, Samuel Mutel wrote: > Indexing requires read access to the repository... so that it can, you > know, see what branches have a Jenkinsfile > => OK but why the module does not use the SSH key for that operation? > Is-it a bug? > Are you using Jenkins Git Plugin 3.6.1 o

Re: Multibranch Pipeline - GIT - SSH authentication

2017-10-26 Thread Stephen Connolly
On 26 October 2017 at 00:44, Samuel Mutel wrote: > Hello, > > I think I found the explanation of my issue. I setup the private key > directly on the jenkins home and it works fine. > All my project are private in GITLAB and the module Multibranch Pipeline > is not using the private key setup insi

Re: Multibranch Pipeline - GIT - SSH authentication

2017-10-25 Thread Stephen Connolly
If it was a github server, you would need the username in the credentials to be `git` and not `jenkins` because GitHub only accepts SSH connections with the username `git`. I wonder if something similar is happening with gitlab? On 25 October 2017 at 03:59, Mark Waite wrote: > You may need to lo

Re: Defining *project level* environemnt variables

2017-10-21 Thread Stephen Connolly
A folder property can contribute env vars. My employer has this functionality I think in our folders-plus plugin... it’s not too hard to write, but sales blocked us open-sourcing it at the time (they’d probably be fine now, but I don’t have the energy to chase it) Somebody may have already implem

Re: unable to post ssh credentials via API

2017-10-12 Thread Stephen Connolly
https://github.com/jenkinsci/credentials-plugin/blob/master/docs/user.adoc#creating-a-credentials (now that I'm at a computer I can give the direct #fragment link) On 11 October 2017 at 19:12, Stephen Connolly < stephen.alan.conno...@gmail.com> wrote: > When posting via REST it mu

Re: unable to post ssh credentials via API

2017-10-11 Thread Stephen Connolly
When posting via REST it must be xml. See the example “Creating a credential” in https://github.com/jenkinsci/credentials-plugin/blob/master/docs/user.adoc#rest-api On Wed 11 Oct 2017 at 18:56, Richard Bywater wrote: > Personally for that task I've used the CLI functionality to run a Groovy > sc

Re: Multibranch checkout for jenkinsfile

2017-10-09 Thread Stephen Connolly
Somebody needs to implement SCMFileSystem for the Subversion plugin. In principle should not be too hard to do. The code is currently using the "old-style" https://github.com/jenkinsci/subversion-plugin/blob/master/src/main/java/jenkins/scm/impl/subversion/SubversionSCMSource.java#L403-L405 so it d

Re: Pipeline support: Using Vault instead of default credentials mechanism in Jenkins?

2017-10-06 Thread Stephen Connolly
Somebody was working on a CredentialsStore implementation that uses a different backing store... I cannot recall whether that was Kubernates Secrets, Docker Secrets or Hashicorp Vault On 6 October 2017 at 02:12, thomas.lehmann via Jenkins Users < jenkinsci-users@googlegroups.com> wrote: > Hi all,

Re: Bitbucket Branch Source Plugin & Endpoints

2017-10-05 Thread Stephen Connolly
> Will do! > > Thanks > Richard. > > On Thu, 5 Oct 2017 at 21:20 Stephen Connolly com> wrote: > >> Oversight. Please file a ticket in JIRA >> >> On 4 October 2017 at 20:46, Richard Bywater wrote: >> >>> Hi >>> >>> One of

Re: Bitbucket Branch Source Plugin & Endpoints

2017-10-05 Thread Stephen Connolly
Oversight. Please file a ticket in JIRA On 4 October 2017 at 20:46, Richard Bywater wrote: > Hi > > One of my colleagues is trying to get Jenkins 2 up and running with the > Bitbucket Branch Source plugin using our Bitbucket Server infrastructure. > > We've run into an issue with the plugin as i

Re: Unable to select Poll SCM checkbox ...

2017-09-28 Thread Stephen Connolly
Jenkins to do a > build and this hook requires the "Poll SCM". > > curl http://localhost:8080/git/notifyCommit?url=... > > I assume this approach will not work. Will use the freestyle project > instead. > > > On Thursday, 28 September 2017 18:00:42 UTC+8, St

Re: Unable to select Poll SCM checkbox ...

2017-09-28 Thread Stephen Connolly
If this is a multibranch project (smells like it) you do not configure polling for each branch. The single indexing of the parent multibranch provides the same as polling *while* simultaneously reducing the load on the SCM Server (one scan vs N polling) On Thu 28 Sep 2017 at 06:31, Eric Tan wrote

Re: GitHub Branch Source Plugin - upgrade messed up jobs

2017-09-21 Thread Stephen Connolly
backup of your current state *now*... that way you may be able to experiment with a partial *all the things* At a minimum upgrade anything with “pipeline” or “scm” in the name. On Fri 22 Sep 2017 at 07:31, Stephen Connolly < stephen.alan.conno...@gmail.com> wrote: > Restore the backup

Re: GitHub Branch Source Plugin - upgrade messed up jobs

2017-09-21 Thread Stephen Connolly
t that didn't help either... > > Stephen, what are my options here? > > > On Friday, September 22, 2017 at 8:54:22 AM UTC+3, Stephen Connolly wrote: > >> That stack trace is from a different plugin. >> >> Pipeline model definition. >> >> Upgradin

Re: GitHub Branch Source Plugin - upgrade messed up jobs

2017-09-21 Thread Stephen Connolly
That stack trace is from a different plugin. Pipeline model definition. Upgrading updated some other plugins, and *those* other plugins are causing the stack trace On Fri 22 Sep 2017 at 06:51, Idan Adar wrote: > The plug-in author is stephen connolly, but I'm not sure how to conta

Please retweet and vote

2017-09-09 Thread Stephen Connolly
https://twitter.com/asfmavenproject/status/906451059966693376 -- Sent from my phone -- 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...

Re: [hard] problem building github tags

2017-09-07 Thread Stephen Connolly
On 6 September 2017 at 23:24, Stephen Connolly < stephen.alan.conno...@gmail.com> wrote: > > On Thu 7 Sep 2017 at 07:22, Stephen Connolly com> wrote: > >> You are waiting on https://github.com/jenkinsci/github-branch- >> source-plugin/pull/158 to be merged then. &g

Re: Is there a Jenkins Google App Engine plugin

2017-09-06 Thread Stephen Connolly
The plugin should still work, but we discontinued the centralised OAuth management service, so you need to manage renewing OAuth every 30-90 days yourself, and you need to define an OAuth application for your Jenkins instance and the redirect URL of that app must be on the public internet IIRC (the

Re: [hard] problem building github tags

2017-09-06 Thread Stephen Connolly
On Thu 7 Sep 2017 at 07:22, Stephen Connolly < stephen.alan.conno...@gmail.com> wrote: > You are waiting on > https://github.com/jenkinsci/github-branch-source-plugin/pull/158 to be > merged then. > > You could build the plugin with the PR merged and do some testing

Re: [hard] problem building github tags

2017-09-06 Thread Stephen Connolly
You are waiting on https://github.com/jenkinsci/github-branch-source-plugin/pull/158 to be merged then. You could build the plugin with the PR merged and do some testing to help give better confidence for releasing that PR On Thu 7 Sep 2017 at 00:43, wrote: > Oh, to clarify, we're using the "g

Re: blueocean pipeline bitbucket repo name cached credentials ?

2017-09-06 Thread Stephen Connolly
On Wed 6 Sep 2017 at 20:05, nup wrote: > Hi, > > > Having a strange issue where I can add the repo name and user when > creating blueocean pipeline with Bitbucket Could connection. My > credentials are permanently stored to and I cannot figure out how to remove > them. > They are stored in your

Re: "Scan Multibranch Pipeline Now" triggers immediate build

2017-09-04 Thread Stephen Connolly
last run is longer than configured On 4 September 2017 at 07:50, Steven Foster wrote: > On Thursday, August 31, 2017 at 5:55:27 PM UTC+1, Stephen Connolly wrote: >> >> >> Periodic randomly levels all jobs >> > > The specs on my 30m interval jobs are all H/2 * *

Re: Multibranch pipeline script path doesn't work with anything other then Jenkinsfile

2017-09-01 Thread Stephen Connolly
Likely your PRs are not "trusted". If the PR is "trusted" then the PR's Jenkinsfile can be used. Check what trust strategy you configured when defining the source On 1 September 2017 at 07:13, 'Ian Smith' via Jenkins Users < jenkinsci-users@googlegroups.com> wrote: > Turns out that in the multibr

Re: Multibranch jobs and webhooks

2017-08-31 Thread Stephen Connolly
On Thu 31 Aug 2017 at 16:41, Steven Foster wrote: > Hi, > > Multibranch pipeline jobs do not automatically configure Github webhooks, > right? > It's necessary to set up the Jenkins (github plugin) service on the Github > repo and add the Jenkins user as a collaborator? > > Just wanted to make su

Re: "Scan Multibranch Pipeline Now" triggers immediate build

2017-08-31 Thread Stephen Connolly
On Thu 31 Aug 2017 at 17:00, Steven Foster wrote: > About scan repository triggers, I generated multibranch jobs with a jobDSL > and replaced "periodic" with "cron" to avoid a huge amount of indexing > happening at once. Is that supposed to even be an option? Since it's not in > the configuration

Re: "Scan Multibranch Pipeline Now" triggers immediate build

2017-08-31 Thread Stephen Connolly
I'm afraid I will need to rely on polling because our git repo is on > another machine in a different facility. Our jenkins is deployed on an EC2 > host and the company doesn't want to open a port to the world for the > trigger notification. > > On Wednesday, August 30, 2017

Re: Pipeline: Changed behaviour of checkout scm

2017-08-31 Thread Stephen Connolly
On Thu 31 Aug 2017 at 08:44, Sverre Moe wrote: > From the release note it says it can be added with "Advanced Clone > Behaviours". > > >- Because each branch job in a multibranch project will only ever >build the one specific branch, the default behaviour for a Git Branch >Source is n

Re: Issue with GitHub branch source plugin

2017-08-30 Thread Stephen Connolly
I recommend that you create a sample project via the UI and then inspect the resulting XML to see how the XML will look, alternatively look at the setTraits(...) method of SCMNavigator On 30 August 2017 at 05:19, Stephen B wrote: > Greetings, > > I set up the GitHub branch source plugin programm

Re: How to disable Plugin Management from Web GUI

2017-08-30 Thread Stephen Connolly
You could remove the jenkins.management.PluginsLink extension from the ExtensionList.lookup(hudson.model.ManagementLink.class) using an init.groovy script... but it is unclear to me whether that would have unintended side-effects... something like def list = ExtensionList.lookup(hudson.model.Mana

Re: "Scan Multibranch Pipeline Now" triggers immediate build

2017-08-30 Thread Stephen Connolly
> enabled on my job configuration. I really don't know how it could be > triggering unless that PollSCM in my Jenkinsfile is somehow working. > Ok, well that sounds like a bug. I've filed https://issues.jenkins-ci.org/browse/JENKINS-46536 to track that. > > > On Tue

Re: "Scan Multibranch Pipeline Now" triggers immediate build

2017-08-29 Thread Stephen Connolly
I > would like to make things event driven. Will need to investigate how with > git. > > > On Tuesday, August 29, 2017 at 5:33:42 PM UTC-5, Stephen Connolly wrote: >> >> >> On Tue 29 Aug 2017 at 23:21, Stephen Connolly >> wrote: >> > >>> On Tue 29

Re: "Scan Multibranch Pipeline Now" triggers immediate build

2017-08-29 Thread Stephen Connolly
On Tue 29 Aug 2017 at 23:21, Stephen Connolly < stephen.alan.conno...@gmail.com> wrote: > > On Tue 29 Aug 2017 at 22:35, Dallas Clement > wrote: > >> If I click on the "Scan Multibranch Pipeline Now" link in the Jenkins >> dashboard, it will kick off a b

Re: "Scan Multibranch Pipeline Now" triggers immediate build

2017-08-29 Thread Stephen Connolly
On Tue 29 Aug 2017 at 22:35, Dallas Clement wrote: > If I click on the "Scan Multibranch Pipeline Now" link in the Jenkins > dashboard, it will kick off a build immediately even when there were no > changes. I have my declarative Jenkinsfile configured to poll for SCM > changes. I only want bui

Re: Github multibranch filtering

2017-08-28 Thread Stephen Connolly
https://issues.jenkins-ci.org/browse/JENKINS-46500 Is similar My intention is that people write extension plugins to deliver non-core functionality so that people can install only those filters that they want and the UI remains simpler for the default installation On Mon 28 Aug 2017 at 22:10, Ste

Re: Pull Requests in Latest SCM versions

2017-08-27 Thread Stephen Connolly
On Sun 27 Aug 2017 at 17:08, wrote: > I upgraded our Jenkins instance to Blue Ocean 1.2 (along with all the > dependencies), and it seems that I'm now unable to get Jenkins to build > pull requests. When I scan the organization, it does not seem to pick up > the pull requests: > > Proposing repo

Re: github-branch-source-plugin Filter issue

2017-08-13 Thread Stephen Connolly
On Sun 13 Aug 2017 at 10:19, Danny Rehelis wrote: > We hit this today while trying to use filter > https://issues.jenkins-ci.org/browse/JENKINS-46079 > > Any particular reason why filter is not per discovered behavior? > The previous behaviour was a bug. Supposed to filter based on the scmhead.g

Re: How to dynamically get list of branches or pull requests in Jenkinsfile/groovy?

2017-08-08 Thread Stephen Connolly
You'd best be served by writing a plugin with a step... Start from the code for resolveScm and you should be able to modify that to return a list of branch names rather than the current behaviour of returning a scm instance for a specific named branch (resolveScm will have a delta from what you wa

Re: [Q] "Scan Repository Now" via api

2017-08-05 Thread Stephen Connolly
e, it seems, a restart with scheduleBuild(0) would kickoff > potentially dozens of jobs that have already been built, when I really only > want it to scan, pick up new folders or commits and build those. > > Can you clarify? > > Thanks. > > > On Saturday, August 5, 2017 at 7:58:51

Re: [Q] "Scan Repository Now" via api

2017-08-05 Thread Stephen Connolly
`scheduleBuild(0)` on the multibranch project is the api for scanning now (as a build of a multibranch project is a scan) On 5 August 2017 at 04:57, Stephen Connolly wrote: > Scan repository now will always kick off builds of branches that have > changes since the last scan where those c

Re: [Q] "Scan Repository Now" via api

2017-08-05 Thread Stephen Connolly
Scan repository now will always kick off builds of branches that have changes since the last scan where those changes were missed by the event handler... so you are kind of asking for the non-possible On 4 August 2017 at 06:13, Budding Mechanic wrote: > Hi, > > I'm using the multibranch pipeline

Re: Pipeline - how to copy a directory of files from outside of workspace into a workspace using groovy?

2017-08-03 Thread Stephen Connolly
On Thu 3 Aug 2017 at 21:09, bbyjenkns wrote: > You can't use normal groovy api since it only works on master. Since >> you're already using unix slaves, just use a normal shell step will save >> you headaches. > > > Why does the groovy api only work on master, but the sh step does? What is > the

Re: I'm trying to learn Jenkins Pipeline - pointers to good programmer documentation? Or is Jenkins World the place I should go????

2017-08-02 Thread Stephen Connolly
atus codes to do most every file operation because what I try to do in > base groovy just does not work (using AntBuilder to copy directories for > example). > FYI AntBuilder is not going to work because it is running on the master not on the build agent... > > On Wednesday, A

Re: I'm trying to learn Jenkins Pipeline - pointers to good programmer documentation? Or is Jenkins World the place I should go????

2017-08-02 Thread Stephen Connolly
On 2 August 2017 at 06:10, bbyjenkns wrote: > I'm struggling with the same thing - doc is very light or wants you to > shell out for everything. I want to write groovy for everything, but it > seems like simple things, such as using AntBuilder for it's file operation > magic is very difficult if

Re: I'm trying to learn Jenkins Pipeline - pointers to good programmer documentation? Or is Jenkins World the place I should go????

2017-08-02 Thread Stephen Connolly
On Wed 2 Aug 2017 at 00:24, Carruth, Rusty wrote: > I’ve read the “getting started with pipeline” pages ( > https://jenkins.io/doc/book/pipeline/getting-started/). > > > > I’ve spent literally hours looking for something really helpful, in one > place, for someone who wants to write CODE in the p

Re: Jenkins Health Check URL

2017-08-01 Thread Stephen Connolly
On Wed 2 Aug 2017 at 00:02, John Hovell wrote: > From the docs: > > > https://wiki.jenkins.io/display/JENKINS/Metrics+Plugin > > > "The Healthcheck servlet runs the healthchecks defined against the Metrics > API and returns the detailed status in JSON (or JSONP) format, while the > high level sta

Re: GitHub Branch Source plugin and pull requests from forked repos

2017-08-01 Thread Stephen Connolly
On Wed 2 Aug 2017 at 01:37, Ramanathan Muthaiah wrote: > > https://go.cloudbees.com/docs/cloudbees-documentation/cje-user-guide/index.html#_controlling_what_is_built > > Documentation mentions that "By default, Jenkins will build any branches > it finds in the “origin” repository (the actual repo

Re: Parsing POM in Jenkins maven project taking very long time (5-6mins)

2017-08-01 Thread Stephen Connolly
Periodic reminder: https://javaadventure.blogspot.ie/2013/11/jenkins-maven-job-type-considered-evil.html On 1 August 2017 at 00:41, tiendungitd wrote: > I'm having problem with maven projects that are building on jenkins slave > using docker container, it's taking too much time at "Parsing POM"

Re: Cannot upgrade git plugin beyond 3.3.0

2017-07-31 Thread Stephen Connolly
So you are using the SCM side of the plugin not the SCMSource side of the plugin. There should be zero changes on the SCM side between 3.3.0 and 3.4.0 as the only changes were on SCMSource... seems very strange On Mon 31 Jul 2017 at 19:29, Sam K wrote: > Hi > > This is at least the second tim

Re: How to set Multibranch Pipeline Trigger interval via Jenkinsfile?

2017-07-27 Thread Stephen Connolly
Cannot be done from a Jenkinsfile. You can do via the groovy console with something like for (var f in Jenkins.instance.getAllItems(jenkins.branch.MultiBranchProject.class) { if (f.parent instanceof jenkins.branch.OrganizationFolder) { // managed by org folder, leave alone continue; }

Re: Delaying BitBucket Branch Source Plugin, but upgrade the rest

2017-07-26 Thread Stephen Connolly
yes, should be safe the warning is because the data file format changes in 2.2.x and hence if you upgrade you will be unable to downgrade safely without the assistance of a backup of your job configuration On 26 July 2017 at 06:02, Dan Tran wrote: > > Due to an issue at https://github.com/topic

[ANN] Credentials plugin documentation

2017-07-25 Thread Stephen Connolly
I have finally finished documenting the credentials plugin. You can find the documentation at https://github.com/jenkinsci/credentials-plugin/tree/master/docs I have also uploaded PDF versions of the documentation to the plugin's wiki page: https://wiki.jenkins.io/display/JENKINS/Credentials+Plug

Re: ssh creds difficulties

2017-07-21 Thread Stephen Connolly
On Fri 21 Jul 2017 at 17:20, Gregory Edigarov wrote: > Hello, list. > > In one of my servers I have a hundred of sites, updates of them maintained > via jenkins. > now I want to change configuration of the server so that sites will belong > each to its own user, and > only this user will have per

Re: Access GitHub Pull Request Number from within Jenkinsfile? (in the refactored Multibranch Pipeline plugin)

2017-07-19 Thread Stephen Connolly
https://github.com/jenkinsci/branch-api-plugin/blob/master/src/main/java/jenkins/branch/BranchNameContributor.java#L65 is the code. Have you updated your github and/or bitbucket plugins to the versions that actually expose the ChangeRequestSCMHead2 interface? On 18 July 2017 at 20:05, Paper Arts

Re: Multiple Jenkinsfiles in a single repo - Clarification

2017-07-18 Thread Stephen Connolly
Correct, and you should create a separate Multibranch project or org folder for each distinct script path that you want On 18 July 2017 at 08:53, David Aldrich wrote: > I haven’t tried it, but I expect that: > > > > Build configuration > Script Path > > > > allows you to specify the specific Jen

Re: GitHub Branch Source: Configuring branch include/exclude from Jenkinsfile

2017-07-11 Thread Stephen Connolly
be able to tweak the include / exclude rules as you see fit On 11 July 2017 at 07:46, Stephen Connolly wrote: > Currently I recommend either using multiple org folders or just using > multibranch projects directly. > > There is some embryonic discussion about how to pull configuration

Re: GitHub Branch Source: Configuring branch include/exclude from Jenkinsfile

2017-07-11 Thread Stephen Connolly
Currently I recommend either using multiple org folders or just using multibranch projects directly. There is some embryonic discussion about how to pull configuration as code up from just the "branch" level to the "repository" and even the "group of repositories" levels... but nothing I would hol

  1   2   3   4   5   6   7   >