Declarative pipeline: Ensure "post" has access to the Git repository

2019-06-23 Thread 'Mark Raynsford' via Jenkins Users
Hello! I have two separate questions so I'll ask the other in separate email to follow. This is my current Jenkinsfile that's shared between about eighty projects via a Git submodule: https://raw.githubusercontent.com/io7m/jenkinsfiles/50d80c92c8a51df11b7970ebbdbae7611dc8ac51/com.io7m.jenkins.gi

Declarative pipeline: Somewhat more advanced deployment logic

2019-06-23 Thread 'Mark Raynsford' via Jenkins Users
Hello! As mentioned in the other email, here's the second problem I'm facing. For reference, this is my current Jenkinsfile shared between about eighty projects via a Git submodule: https://raw.githubusercontent.com/io7m/jenkinsfiles/50d80c92c8a51df11b7970ebbdbae7611dc8ac51/com.io7m.jenkins.gith

Combining periodic SCM check with building individual commits

2019-08-28 Thread 'Mark Raynsford' via Jenkins Users
Hello. I use a pretty simple setup for each job. Each of my jobs is a GitHub project, and I use the "poll SCM" feature with a schedule of "H/53 * * * *" (in other words, poll randomly roughly hourly). My Jenkins setup is not externally accessible in any form, so I can't have an external service no

Re: Combining periodic SCM check with building individual commits

2019-08-30 Thread 'Mark Raynsford' via Jenkins Users
On 2019-08-28T14:22:12 -0400 Mark Waite wrote: > You're using a relatively special case. The git plugin does not support it > directly. > > You might consider splitting the task into two Jenkins jobs: > >1. Job that takes a SHA-1 as a parameter that should be built, but never >polls th

Jenkins as a render farm

2018-12-18 Thread 'Mark Raynsford' via Jenkins Users
Hello! I've been using Jenkins to build code from hundreds of git repositories using declarative pipelines. In the setup I'm using, I have a small number of nodes, and all nodes must successfully build and run all tests in order for the job as a whole to have been considered successful. I'd now l

Re: Jenkins as a render farm

2018-12-18 Thread 'Mark Raynsford' via Jenkins Users
On 2018-12-18T14:01:09 -0700 Slide wrote: > I think would be "easy" in a scripted pipeline compared to a declarative > pipeline. The reason I say that is because you can use loops directly in > your pipeline, so if you knew the number of frames, you could iterate over > the number of frames with

Re: Jenkins as a render farm

2018-12-19 Thread 'Mark Raynsford' via Jenkins Users
On 2018-12-18T14:31:07 -0700 Slide wrote: > I'm not sure you can get the number of nodes that match a label, that might > be an interesting step to add though. It'd be nice if Jenkins passed this information to me as environment variables. I think it probably knows the current number of nodes f

Re: Jenkins as a render farm

2018-12-19 Thread 'Mark Raynsford' via Jenkins Users
On 2018-12-19T09:27:31 + "'Mark Raynsford' via Jenkins Users" wrote: > > I think it probably knows the current number of nodes for a job, and it > could probably assign each node a number within that set... Anyone know > how easy/difficult it would be t

Re: Jenkins as a render farm

2018-12-19 Thread 'Mark Raynsford' via Jenkins Users
On 2018-12-19T11:58:28 + "'Mark Raynsford' via Jenkins Users" wrote: > If I make the assumption that all offline nodes... s/offline/online -- Mark Raynsford | http://www.io7m.com -- You received this message because you are subscribed to the Google Groups &q

Re: Jenkins as a render farm

2018-12-20 Thread 'Mark Raynsford' via Jenkins Users
On 2018-12-19T11:58:28 + "'Mark Raynsford' via Jenkins Users" wrote: > > If I make the assumption that all offline nodes with the correct label > are participating in rendering, then I think I could implement this > using the pipeline-utility-steps plugin [0

Missing latest .deb

2019-02-04 Thread 'Mark Raynsford' via Jenkins Users
Hello! Upon trying to get a Debian machine to the latest Jenkins, I seem to have run into a missing blob: https://pkg.jenkins.io/debian/binary/jenkins_2.163_all.deb BlobNotFound The specified blob does not exist. RequestId:3c1fe8ec-f01e-00fc-34b9-bc8bcb00 Time:2019-02-04T18:42:17.

Re: Missing latest .deb

2019-02-04 Thread 'Mark Raynsford' via Jenkins Users
On 2019-02-04T12:20:25 -0700 Slide wrote: > Hmm, I just tried with the link you provided and I am able to download via > browser. Can you'd etermine which mirror you are getting sent to? > Looks like it was: https://prodjenkinsreleases.blob.core.windows.net/debian/jenkins_2.163_all.deb ... Bu

Gracefully ignoring unavailable agents

2020-12-31 Thread 'Mark Raynsford' via Jenkins Users
Hello! Let's say I'm using a declarative pipeline setup like this: ~~ #!groovy pipeline { agent none stages { stage('Build') { parallel { stage('Build Linux') { stages { stage('Build:linux:openjdk-11-hotspot') { agent {

Re: Gracefully ignoring unavailable agents

2021-01-05 Thread 'Mark Raynsford' via Jenkins Users
On 2021-01-04T22:33:55 +0100 ST wrote: > As mentioned by Mark, nodesByLabel will give you control over what agents > are currently available. But you will need a script {} section in an > initialization stage and probably set an env variable that you then check > in the when {} section of the win