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

Re: Start multi-branch indexing from SCM notification

2018-09-14 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

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

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

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

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

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

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

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

2018-01-09 Thread Stephen Connolly
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

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

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

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

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

2018-01-04 Thread Stephen Connolly
a commit with a Jenkinsfile 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
:09 GitHub API Usage: Current 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

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

2018-01-04 Thread Stephen Connolly
ll 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 >> commit

[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: *

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 >

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: 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.

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/

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

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

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

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.

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

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

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 <harlanbar...@gmail.com> > wrote: > >> Hello Jenkins Friends, >> >> I'm having a problem getting the configuration cor

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 >

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

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

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

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: >

Re: Jenkins: remote windows build slave

2017-11-08 Thread Stephen Connolly
or similar and much better for security. On Wed 8 Nov 2017 at 07:35, Jeeva Chelladhurai <sje...@gmail.com> 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.ala

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

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

2017-11-07 Thread Stephen Connolly
not control their schedules > 2017-11-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.i

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

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

[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

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 > >>

Re: [Event]: Bugs wanted

2017-11-01 Thread Stephen Connolly
On 1 November 2017 at 13:30, Alyssa Tong <alyton...@gmail.com> 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 > <http

Re: [hard] problem building github tags

2017-11-01 Thread Stephen Connolly
enkinsfile’ found > 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 >

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

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

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

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

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 must be

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

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

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

Re: Bitbucket Branch Source Plugin & Endpoints

2017-10-05 Thread Stephen Connolly
com> wrote: > Will do! > > Thanks > Richard. > > On Thu, 5 Oct 2017 at 21:20 Stephen Connolly <stephen.alan.connolly@gmail. > com> wrote: > >> Oversight. Please file a ticket in JIRA >> >> On 4 October 2017 at 20:46, Richard Bywater <rich...

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

Re: Unable to select Poll SCM checkbox ...

2017-09-28 Thread Stephen Connolly
hook (eg. post-commit) to notify 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

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

Re: GitHub Branch Source Plugin - upgrade messed up jobs

2017-09-22 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
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 <i...@adar.me> wrote: > The plug-in author is stephen connolly, but I'm not

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

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 <stephen.alan.connolly@gmail. > com> wrote: > >> You are waiting on https://github.com/jenkinsci/github-branch- >>

Re: Is there a Jenkins Google App Engine plugin

2017-09-07 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

Re: [hard] problem building github tags

2017-09-07 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-07 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

Re: "Scan Multibranch Pipeline Now" triggers immediate build

2017-09-04 Thread Stephen Connolly
the last run is longer than configured On 4 September 2017 at 07:50, Steven Foster <stevengfos...@gmail.com> wrote: > On Thursday, August 31, 2017 at 5:55:27 PM UTC+1, Stephen Connolly wrote: >> >> >> Periodic randomly levels all jobs >> > > The sp

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

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?

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

Re: "Scan Multibranch Pipeline Now" triggers immediate build

2017-08-31 Thread Stephen Connolly
s the better way to do it > 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 Wednes

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

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 =

Re: "Scan Multibranch Pipeline Now" triggers immediate build

2017-08-30 Thread Stephen Connolly
n Tuesday, August 29, 2017 at 6:48:55 PM UTC-5, Stephen Connolly wrote: >> >> Sounds like you have a post commit hook pushing the commit details to >> Jenkins, in which case events are working... to confirm, check the cause of >> a build, if it says "Branch Event"

Re: "Scan Multibranch Pipeline Now" triggers immediate build

2017-08-29 Thread Stephen Connolly
scalable with many branches. 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 <stephen.al...@g

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

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

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

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

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

2017-08-05 Thread Stephen Connolly
be accurate > > Otherwise, 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 Sa

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 <stephen.alan.conno...@gmail.com > wrote: > Scan repository now will always kick off builds of branches that have > 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

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

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
day, August 2, 2017 at 9:46:18 AM UTC-5, Stephen Connolly wrote: >> >> On 2 August 2017 at 06:10, bbyjenkns <mcj...@gmail.com> wrote: >> >>> I'm struggling with the same thing - doc is very light or wants you to >>> shell out for everything. I want to writ

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

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

Re: Jenkins Health Check URL

2017-08-02 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,

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

2017-08-02 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”

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

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

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

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 >

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

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 <stephen.alan.conno...@gmail.com> wrote: > Currently I recommend either using multiple org folders or just using > multibranch projects directly. > > There is some embryonic di

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

Re: Amazon EC2 Container Service Plugin Waiting for Executor

2017-07-10 Thread Stephen Connolly
On Mon 10 Jul 2017 at 03:44, Douglas Manley wrote: > Update: I believe that I have fixed the problem within the > "amazon-ecs-plugin". The short story is that it's possible to tell Jenkins > that the automatically-created nodes, once they start a job, will never run >

Re: Safe to remove Server Sent Events (SSE) Gateway Plugin + its dependency??

2017-07-07 Thread Stephen Connolly
Iirc that is used by blue ocean On Fri 7 Jul 2017 at 08:33, Dan Tran wrote: > > > Hi, > > I tend to remove those plugins that i dont use. However the name of this > plugin sounds like a infra type, do i really need it? > > Thanks > > -Dan > > -- > You received this message

Re: github-branch-source 2.0.7 hpi missing

2017-07-06 Thread Stephen Connolly
https://issues.jenkins-ci.org/browse/INFRA-1266 filed On 6 July 2017 at 02:39, Stephen Connolly <stephen.alan.conno...@gmail.com> wrote: > Baptiste reports that https://updates.jenkins.io/download/plugins/gitlab- > plugin/ is also missing... something is going on very strange > &

Re: github-branch-source 2.0.7 hpi missing

2017-07-06 Thread Stephen Connolly
Baptiste reports that https://updates.jenkins.io/download/plugins/gitlab-plugin/ is also missing... something is going on very strange On 6 July 2017 at 02:26, Stephen Connolly <stephen.alan.conno...@gmail.com> wrote: > Yes, very strange.. seems to be missing from upstream too

Re: github-branch-source 2.0.7 hpi missing

2017-07-06 Thread Stephen Connolly
You can grab it from https://jenkins-updates.cloudbees.com/download/plugins/github-branch-source/ while we try to determine what is going on there On 6 July 2017 at 02:26, Stephen Connolly <stephen.alan.conno...@gmail.com> wrote: > Yes, very strange.. seems to be missing from ups

Re: github-branch-source 2.0.7 hpi missing

2017-07-06 Thread Stephen Connolly
Yes, very strange.. seems to be missing from upstream too: https://updates.jenkins.io/download/plugins/ On 6 July 2017 at 01:32, wrote: > Hi, > > > looks like the hpi is missing from github-branch-source 2.0.7 (which is > offered in my jenkins updateCenter) > > >

Re: Add entry to Multibranch Pipeline Configuration

2017-07-03 Thread Stephen Connolly
BranchProperty On 3 July 2017 at 10:47, David W wrote: > Hi, > > I'm using feature branches and sonarqube code scanning with a jenkins > multibranch pipeline job. > > Bachground: > Jenkins creates a new job for every new branch, sonarqube scanner notifies > sonarqube and

  1   2   3   4   5   6   7   >