Discussion:
Help: Jenkins builds ONLY on master OR slave
f***@gmail.com
2018-11-02 05:44:38 UTC
Permalink
Hi

I got two machines with Win10. One is jenkins' master and the other is
slave. Both are shown as online in dashboard.

Both node are configured as 'Use this node as much as possible'.

My Project is configured as 'Execute concurrent builds if necessary'.

I want to build the project on master AND slave concurrently, but found
jenkins only start build action on slave. Only after mark slave as offline,
master would take build action.

I tried label them but failed.

Master has 2 executors while slave has one, but they are the default
setting value.

Jenkins version : 2.138.2

Is there any thing I missed?

Thanks.
--
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-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/0bf2a8b2-0d1d-4600-9dab-9e762a834cb7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jan Monterrubio
2018-11-02 14:28:26 UTC
Permalink
When the job builds on the slave agent, does it not build concurrently with
one executor on the master and one on the slave?
Post by f***@gmail.com
Hi
I got two machines with Win10. One is jenkins' master and the other is
slave. Both are shown as online in dashboard.
Both node are configured as 'Use this node as much as possible'.
My Project is configured as 'Execute concurrent builds if necessary'.
I want to build the project on master AND slave concurrently, but found
jenkins only start build action on slave. Only after mark slave as offline,
master would take build action.
I tried label them but failed.
Master has 2 executors while slave has one, but they are the default
setting value.
Jenkins version : 2.138.2
Is there any thing I missed?
Thanks.
--
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
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/0bf2a8b2-0d1d-4600-9dab-9e762a834cb7%40googlegroups.com
<https://groups.google.com/d/msgid/jenkinsci-users/0bf2a8b2-0d1d-4600-9dab-9e762a834cb7%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CADgiF9JnFmZcD7T8L0Wqys7mDvMDSoZP5oQW9GRfWqb%2BAMcf-Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Ivan Fernandez Calvo
2018-11-02 17:04:16 UTC
Permalink
You can make it with a pipeline with 2 stages in parallel with the same steps and different nodes somethinlike this


pipeline{

stages {
stage(‘parallel’) {
parallel {
stage(‘master’){
agent { label ‘master’}
steps{
//steps
}
}
stage(‘agent’){
agent { label ‘agent’ }
steps {
//steps
}
}
}
}

}

On steps you could use the build step, it launch a job, or translate your job to pipeline

https://jenkins.io/doc/book/pipeline/syntax/
--
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-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/7e74b1a1-c866-4750-97a9-4c890046a45d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
firstrose
2018-11-05 01:32:10 UTC
Permalink
Thank you. I'll try it.
Post by Ivan Fernandez Calvo
You can make it with a pipeline with 2 stages in parallel with the same
steps and different nodes somethinlike this
pipeline{
stages {
stage(‘parallel’) {
parallel {
stage(‘master’){
agent { label ‘master’}
steps{
//steps
}
}
stage(‘agent’){
agent { label ‘agent’ }
steps {
//steps
}
}
}
}
}
On steps you could use the build step, it launch a job, or translate your job to pipeline
https://jenkins.io/doc/book/pipeline/syntax/
--
You received this message because you are subscribed to a topic in the
Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/jenkinsci-users/EWXcj5fm_kA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/7e74b1a1-c866-4750-97a9-4c890046a45d%40googlegroups.com
.
For more options, visit https://groups.google.com/d/optout.
--
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-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAHdEBqzLYLPV%2BRgFFuch5-T%2B1xMfd6BK-gGkhEOD94sA0gyc5g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
firstrose
2018-11-05 01:29:41 UTC
Permalink
Yes. When master AND slave are all enabled, the job builds ONLY on the
SLAVE agent. At the same time, the job does NOT build concurrently with any
executor on the master.
Post by Jan Monterrubio
When the job builds on the slave agent, does it not build concurrently
with one executor on the master and one on the slave?
Post by f***@gmail.com
Hi
I got two machines with Win10. One is jenkins' master and the other is
slave. Both are shown as online in dashboard.
Both node are configured as 'Use this node as much as possible'.
My Project is configured as 'Execute concurrent builds if necessary'.
I want to build the project on master AND slave concurrently, but found
jenkins only start build action on slave. Only after mark slave as offline,
master would take build action.
I tried label them but failed.
Master has 2 executors while slave has one, but they are the default
setting value.
Jenkins version : 2.138.2
Is there any thing I missed?
Thanks.
--
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
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/0bf2a8b2-0d1d-4600-9dab-9e762a834cb7%40googlegroups.com
<https://groups.google.com/d/msgid/jenkinsci-users/0bf2a8b2-0d1d-4600-9dab-9e762a834cb7%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the
Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/jenkinsci-users/EWXcj5fm_kA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/CADgiF9JnFmZcD7T8L0Wqys7mDvMDSoZP5oQW9GRfWqb%2BAMcf-Q%40mail.gmail.com
<https://groups.google.com/d/msgid/jenkinsci-users/CADgiF9JnFmZcD7T8L0Wqys7mDvMDSoZP5oQW9GRfWqb%2BAMcf-Q%40mail.gmail.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
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-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAHdEBqx8FMSQ5GvROhpEpD%2BJUkKYTJA3k5fQMvd1J29Fq4d3LQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Loading...