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
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 windows stages. So not purely declarative
anymore.
Apologies for the empty message that preceded this one. Fat fingers on an
unfamiliar keyboard.
I've been using the pipeline step 'nodesByLabel' in scripted pipelines to
select label based subsets of agents that are currently available. I'm not
sure that the same technique can be used with declar
On Thu, Dec 31, 2020 at 2:27 PM 'Mark Raynsford' via Jenkins Users <
jenkinsci-users@googlegroups.com> wrote:
> Hello!
>
> Let's say I'm using a declarative pipeline setup like this:
>
> ~~
> #!groovy
>
> pipeline {
>
> agent none
>
> stages {
> stage('Build') {
> parallel {
>
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 {