Re: GitHub Branch Source Plugin "trusted" pull request property in Jenkinsfile?

2019-03-04 Thread Steven Foster
https://issues.jenkins-ci.org/browse/JENKINS-45970 this might cover it already :) On Monday, March 4, 2019 at 5:02:43 PM UTC, Brian J. Murrell wrote: > > On Mon, 2019-03-04 at 15:28 +0100, Baptiste Mathus wrote: > > This seems like a useful thing. I would recommend filing an issue in > > https:

Re: What are the reasons for using "Merging the pull request with the current target branch revision"

2019-02-14 Thread Steven Foster
It would definitely be my preferred way of building code, but unfortunately the Jenkins master has to clone and perform the merge per pipeline every time. That doesn't scale on a sizeable repo with many active PRs and 12 multibranch pipelines :( I've seen people merge PRs with an old base befor

Re: Continuous integration creates a build loop

2019-02-12 Thread Steven Foster
I'm not sure what's available for Gitlab, but some other SCMs have a plugin that allows commits by certain authors be skipped/ignored. https://github.com/jenkinsci/scm-trait-commit-skip-plugin for example. If there is no such plugin for Gitlab, it might be easy enough to make one or contribute a

Re: Sporadic MSBuild errors / possible durable task issue?

2019-02-01 Thread Steven Foster
On Friday, February 1, 2019 at 12:04:26 AM UTC, Daniel Becroft wrote: > > We had a similar issue, and it ended up being related to MSBuild itself, > not Jenkins. The jobs seemed to work correctly when run from a command > line, but it took a while and they eventually started failing as well. >

Re: Sporadic MSBuild errors / possible durable task issue?

2019-01-31 Thread Steven Foster
On Thursday, January 31, 2019 at 4:45:40 PM UTC, Simon Richter wrote: > > > There are a few things going on: > > - MSBuild sticks around after a build if the same project is rebuilt > - Jenkins kills processes belonging to a build after it believes the > build has finished > - MSBuild has

Sporadic MSBuild errors / possible durable task issue?

2019-01-31 Thread Steven Foster
After updating Jenkins with plugins from early April 2018, I'm seeing inconsistent failures in my pipelines' calls to MSBuild which I cannot reproduce outside of Jenkins. It occurs in both powershell and bat steps. The error presents as 0>MSBUILD : error MSB4166: Child node "14" exited premat

Re: Completely Host Jenkins build logs on external storage

2018-10-24 Thread Steven Foster
Nothing released yet, but there are some relevant JEPs that might interest you https://github.com/jenkinsci/jep/blob/master/jep/207/README.adoc https://github.com/jenkinsci/jep/blob/master/jep/210/README.adoc https://github.com/jenkinsci/jep/blob/master/jep/212/README.adoc On Monday, October 22,

Re: How to set own status message with github-branch-source-plugin ?

2018-10-22 Thread Steven Foster
You can set the status on a github multibranch pipeline using the https://github.com/jenkinsci/github-scm-trait-notification-context-plugin It does not require anything in the scripted pipeline/Jenkinsfile, it is added on the multibranch pipeline configuration as a behavior (where the branch / P

Re: How to kickstart a multibranch pipeline scan?

2018-08-18 Thread Steven Foster
a sample build > step look for the scan operation? > > -aps > > On Sat, Aug 18, 2018 at 10:47 AM Steven Foster > wrote: > >> You can use the "build" step to start a multibranch scan. Just call it on >> the multibranch job as you would a normal job. >>

Re: How to kickstart a multibranch pipeline scan?

2018-08-18 Thread Steven Foster
You can use the "build" step to start a multibranch scan. Just call it on the multibranch job as you would a normal job. On Friday, August 17, 2018 at 4:29:24 PM UTC+1, pisymbol wrote: > > I have a job that creates a new branch/tag in SVN. IT does so by modifying > some internal build files and

Re: Jenkins masters sharing the same slave agent

2018-08-01 Thread Steven Foster
I haven't used it, but perhaps the Node Sharing Plugin would help here? https://wiki.jenkins.io/display/JENKINS/Node+Sharing+Plugin -- 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 i

Re: [BitBucket Branch Source Plugin] Massive PR rebuild

2018-05-15 Thread Steven Foster
It might be rebuilding because the daily repo scan sees that the target branch has been changed (e.g. master). I'm not sure why the manual scan wouldn't see this, too. I'm using github branch source and had this issue, so it might be different in bitbucket but the repo scan log should mention s

Multiple reference repository locations

2018-04-06 Thread Steven Foster
I'm encountering problems with the PR Merge Jenkinsfile checkout since my build is actually 12 builds in parallel so the pressure is enormous especially when multiple prs are building at once. I would like to use the reference repository feature on the master to relieve this somewhat, but I hav

Re: reporting status back to Github, before using `input`

2018-04-06 Thread Steven Foster
If you end up managing your own status notifications, you might want to either use the same "context"/"label" as the automatic multibranch notifications (so it is overwritten) or disable the automatic ones and manage it entirely yourself. https://plugins.jenkins.io/github-scm-trait-notification

Re: Dynamic stages in pipeline

2018-04-03 Thread Steven Foster
I think with the declarative syntax all of the "scaffolding" (stages, post, when) bits have to be set in stone. This recent thread might be slightly relevant https://groups.google.com/forum/#!topic/jenkinsci-users/E-3O1rHWkdM On Tuesday, April 3, 2018 at 11:14:51 PM UTC+1, Arnaud Brunet wrote: >

Re: PR Merge lightweight checkout

2018-03-28 Thread Steven Foster
s a flag to request a shallow >> clone. This reduces the fetch time very significantly. >> >> On Wed, Mar 28, 2018, 18:03 Steven Foster > > wrote: >> >>> Is there an alternative to a full checkout on the master to determine >>> the merge result of a

PR Merge lightweight checkout

2018-03-28 Thread Steven Foster
Is there an alternative to a full checkout on the master to determine the merge result of a Jenkinsfile for PR merge builds in a multibranch project? Specifically using github. I'm finding the full checkout seems to strain the whole system when the master needs to check out a large repo ~15 time

Re: Pipeline: Resource Locking Plugin hangs

2018-03-13 Thread Steven Foster
On Tuesday, March 13, 2018 at 1:02:02 PM UTC, Sverre Moe wrote: > > Looks like there is a fix for this in the works. > https://github.com/jenkinsci/lockable-resources-plugin/pull/70 > I *think* this fix is just for manual reservation/unreservation of a resource by a user (there's a button in the

Re: Pipeline Build Step lightweight checkout?

2018-03-12 Thread Steven Foster
Nevermind me, I'm a liar. When I added the aggregate build I also switched from a branch build to a PR-Merge build, which necessitates a full checkout to properly resolve the Jenkinsfile I suppose On Friday, March 9, 2018 at 5:27:37 PM UTC, Steven Foster wrote: > > Hi there, >

Re: Is the "checkout scm" step necessary in multi-branch pipelines?

2018-03-12 Thread Steven Foster
I think it's a feature of declarative syntax rather than multibranch. In declarative, every time a node is allocated it comes with a checkout scm by default. On Monday, March 12, 2018 at 12:50:53 PM UTC, Behrang wrote: > > In my pipeline I don't have this step and everything is working fine, but

Pipeline Build Step lightweight checkout?

2018-03-09 Thread Steven Foster
Hi there, I'm using a pattern of split pipelines due to the number of parallel tasks needed and the grouping between them. I have an aggregating "parent" pipeline that kicks off indexing for all of the sub-builds (which are multibranch pipelines) then kicks off the sub-builds themselves. The a

Re: Configuration that works for PRs and master

2018-01-17 Thread Steven Foster
env.BRANCH_NAME is only populated when your job is from a Multibranch Project type (which is probably a good project type to use for this kind of building) On Wednesday, January 17, 2018 at 10:45:53 AM UTC, Hiesgen, Raphael wrote: > Thanks for the pointer! So, the recommended way is my third op

Multi-branch, multi-platform, multi-configuration?

2018-01-13 Thread Steven Foster
I'm trying to figure out the best way to organize some Jenkins multibranch builds. I have 2 dimensions of parallel work in platforms and platform configurations. Currently, as a simplest solution, I use a single build with a flattened parallel list. This gets the job done but it makes it diffic

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

2018-01-11 Thread Steven Foster
; If github receives a duplicate context label it just replaces the > existing one, so this is helpful if you are doing more than one kind of > build for a repo. > > That explains it! That's so frustrating :( . Thanks for your help! > > > On Thursday, January 4, 2018 at 11:24:39

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 Steven Foster
Here is the repo for the custom github context plugin https://github.com/steven-foster/github-scm-trait-notification-context I still need to actually release it to the plugin center, hopefully that's not too arduous. It lets you specify a context label for a multibranch project

Re: Releasing with declarative pipeline

2018-01-03 Thread Steven Foster
I am using Git though, I'm not sure about the current availability of this functionality for SVN -- 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-user

Re: Releasing with declarative pipeline

2018-01-03 Thread Steven Foster
I have been using the multibranch project's tag build functionality to achieve this. An environment variable is provided when running a tag build, so the pipeline can have a stage which checks for the presence of that variable. Using multibranch to build a single branch seems a little counter i

Re: Declarative pipeline "when" tag is pushed

2017-12-20 Thread Steven Foster
I think you can get that with this: when { expression { env.TAG_NAME != null } } You get the env.TAG_NAME from the branch api when it's a tag build. A shortcut would be helpful, I suggested it here https://issues.jenkins-ci.org/browse/JENKINS-48523 On Wednesday, December 20, 20

Re: How to pass paramater to process environment variable?

2017-09-20 Thread Steven Foster
You should define the parameters in the pipeline also: https://jenkins.io/doc/book/pipeline/syntax/#parameters currently there is some disconnect in the project configuration UI for pipeline jobs, many of the options there need to actually be defined in the pipeline. On Wednesday, September 20,

Re: Multibranch jobs and webhooks

2017-09-18 Thread Steven Foster
Figured out the issue. In order to manage Webhooks, the branch job must have: a. run at least once b. contain at least one scm checkout In my simple testing neither of those cases were true, leading me to go round in circles for awhile :) I suspect the request to manage from the branch source pl

Re: Multibranch jobs and webhooks

2017-09-15 Thread Steven Foster
On Friday, September 1, 2017 at 11:57:32 AM UTC+1, Stephen Connolly wrote: > > The credentials provided for manage hooks needs to have permission to > manage hooks on all repositories. > > You may need to trigger the "Re-register hooks for all jobs" if something > went wrong. > > HTH > Still s

Re: "Scan Multibranch Pipeline Now" triggers immediate build

2017-09-04 Thread Steven Foster
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 * * * *, doesn't this mean every 2 minutes rather than every 30 minutes which would be H/30 * * * *? Or is the internal system differ

Re: Multibranch jobs and webhooks

2017-09-01 Thread Steven Foster
On Friday, September 1, 2017 at 12:18:35 AM UTC+1, Stephen Connolly wrote: > > > Well what it means is that to have hooks automatically managed at the repo > level you need to define the GitHub servers in the global config, enable > managing hooks and provide credentials that can manage hooks (

Re: "Scan Multibranch Pipeline Now" triggers immediate build

2017-08-31 Thread Steven Foster
On Thursday, August 31, 2017 at 5:55:27 PM UTC+1, Stephen Connolly wrote: > > Periodic randomly levels all jobs > Ah, my mistake. What I was noticing was a symptom of something else (user error) -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group.

Re: "Scan Multibranch Pipeline Now" triggers immediate build

2017-08-31 Thread Steven Foster
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 UI. -- You received this message because you are subsc

Multibranch jobs and webhooks

2017-08-31 Thread Steven Foster
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 sure my understanding was correct before I give people the wrong

Re: Github multibranch filtering

2017-08-28 Thread Steven Foster
This workaround is a good idea, unfortunately it wouldn't work for us because of the amount of PRs. I ended up extending the github branch source plugin to let me filter based on this property. Not sure how to go about contributing this back, or if it's even a feature that would be welcomed. On

Re: Github multibranch filtering

2017-08-23 Thread Steven Foster
Ok, so the functionality to filter based on a PRs base branch isn't there? For the branch portion, I'm able to make it build only the branch I want. But with PRs, it seems to be all or nothing. In my case there are hundreds of PRs and I'm only interested in building a select few based on a specif

Github multibranch filtering

2017-08-23 Thread Steven Foster
Does the Github multibranch source allow filtering for PRs that target a particular base branch? So I want to build only branch 'foo/bar' and all PRs that are targeting 'foo/bar' -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe

Re: Release Button or best practice

2017-08-21 Thread Steven Foster
I do like this solution and it seems really flexible but unfortunately it has one big problem for us. The build is not technically *done* until this input step is answered. Sometimes we will want to release over a week later. We release at any time really. If we timeout then we can't answer the

Re: Release Button or best practice

2017-08-16 Thread Steven Foster
On Tuesday, August 15, 2017 at 6:09:04 PM UTC+1, Simon Richter wrote: > > > You are looking for the "Promoted Builds" plugin. > > Ah, I did come across this but unfortunately we are using pipeline builds and it seems this isn't compatible -- You received this message because you are subscribed

Release Button or best practice

2017-08-15 Thread Steven Foster
Hello, Does anyone know of any techniques or plugins for triggering a release after a build? I'd like to be able to decide to release any previous build and have that process traceable. Input steps don't suit because it holds back the build feedback. Sometimes it will be a few days after a buil