File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -19,3 +19,5 @@ You can specify optional environment variables below when invoking docker run to
19
19
| Parameter | Default Value | Description |
20
20
| -----------------| ---------------------| ----------------------------------------------------------------------------|
21
21
| SLAVE_EXECUTORS | number of cpu cores | This value specifies the number of concurrent jobs this worker can process |
22
+ | SLAVE_NAME | swarm-client | This value specifies the name of slave that will appear on Jenkins UI |
23
+ | SLAVE_LABELS | None | This value specifies the labels you want to give for the launching slave |
Original file line number Diff line number Diff line change 13
13
if [ ! -z " $SLAVE_EXECUTORS " ]; then
14
14
PARAMS=" $PARAMS -executors $SLAVE_EXECUTORS "
15
15
fi
16
+ if [ ! -z " $SLAVE_LABELS " ]; then
17
+ PARAMS=" $PARAMS -labels $SLAVE_LABELS "
18
+ fi
19
+ if [ ! -z " $SLAVE_NAME " ]; then
20
+ PARAMS=" $PARAMS -name $SLAVE_NAME "
21
+ fi
16
22
if [ ! -z " $JENKINS_MASTER " ]; then
17
23
PARAMS=" $PARAMS -master $JENKINS_MASTER "
18
24
else
You can’t perform that action at this time.
0 commit comments