How to run two Jenkins multi phase Jobs at the same time?
I have two groups of multi-phase jobs, parallel test 1
and parallel test 2
; where I need to execute both the groups together at the same time.
Does multi job
jenkins plugin has a hack for it? or any alternatives...
Note: I don't want all the 3 jobs in the same MultiJob Phase
jenkins jenkins-plugins jenkins-pipeline
|
show 6 more comments
I have two groups of multi-phase jobs, parallel test 1
and parallel test 2
; where I need to execute both the groups together at the same time.
Does multi job
jenkins plugin has a hack for it? or any alternatives...
Note: I don't want all the 3 jobs in the same MultiJob Phase
jenkins jenkins-plugins jenkins-pipeline
In the multi-job plugin, everything runs in parallel that is listed in the same "Phase". Just put those 3 jobs into one MultiJob Phase and you're set.
– Raoslaw Szamszur
Nov 22 '18 at 14:28
@RaoslawSzamszur Idea is to split 2 jobs in one phase and 1 job on another phase due to some internal project reasons
– Prashanth Sams
Nov 22 '18 at 14:46
I'd figured it may be the case. Well, then the latest thing that comes into my mind is to rewrite your MultiJob logic into a declarative pipeline and use[pararell](https://jenkins.io/doc/book/pipeline/syntax/#parallel)
block to run things in parallel. Is this doable for your project? I don't know any workarounds for such case for MultiJob.
– Raoslaw Szamszur
Nov 22 '18 at 14:58
2
@RaoslawSzamszur, I think your answer is the correct approach (I didn't test your code myself so I can't vote up yet). Still, there are some features of multiJob that cannot be achieved with 'parallel' step, but for what Prashanth Sams needs, it seems good enough.
– yorammi
Nov 22 '18 at 21:13
1
I've provided an answer for the additional question, I hope it will be good for you
– yorammi
Nov 24 '18 at 14:25
|
show 6 more comments
I have two groups of multi-phase jobs, parallel test 1
and parallel test 2
; where I need to execute both the groups together at the same time.
Does multi job
jenkins plugin has a hack for it? or any alternatives...
Note: I don't want all the 3 jobs in the same MultiJob Phase
jenkins jenkins-plugins jenkins-pipeline
I have two groups of multi-phase jobs, parallel test 1
and parallel test 2
; where I need to execute both the groups together at the same time.
Does multi job
jenkins plugin has a hack for it? or any alternatives...
Note: I don't want all the 3 jobs in the same MultiJob Phase
jenkins jenkins-plugins jenkins-pipeline
jenkins jenkins-plugins jenkins-pipeline
edited Jan 5 at 7:43
daspilker
5,9301538
5,9301538
asked Nov 22 '18 at 12:58
Prashanth SamsPrashanth Sams
6,93585172
6,93585172
In the multi-job plugin, everything runs in parallel that is listed in the same "Phase". Just put those 3 jobs into one MultiJob Phase and you're set.
– Raoslaw Szamszur
Nov 22 '18 at 14:28
@RaoslawSzamszur Idea is to split 2 jobs in one phase and 1 job on another phase due to some internal project reasons
– Prashanth Sams
Nov 22 '18 at 14:46
I'd figured it may be the case. Well, then the latest thing that comes into my mind is to rewrite your MultiJob logic into a declarative pipeline and use[pararell](https://jenkins.io/doc/book/pipeline/syntax/#parallel)
block to run things in parallel. Is this doable for your project? I don't know any workarounds for such case for MultiJob.
– Raoslaw Szamszur
Nov 22 '18 at 14:58
2
@RaoslawSzamszur, I think your answer is the correct approach (I didn't test your code myself so I can't vote up yet). Still, there are some features of multiJob that cannot be achieved with 'parallel' step, but for what Prashanth Sams needs, it seems good enough.
– yorammi
Nov 22 '18 at 21:13
1
I've provided an answer for the additional question, I hope it will be good for you
– yorammi
Nov 24 '18 at 14:25
|
show 6 more comments
In the multi-job plugin, everything runs in parallel that is listed in the same "Phase". Just put those 3 jobs into one MultiJob Phase and you're set.
– Raoslaw Szamszur
Nov 22 '18 at 14:28
@RaoslawSzamszur Idea is to split 2 jobs in one phase and 1 job on another phase due to some internal project reasons
– Prashanth Sams
Nov 22 '18 at 14:46
I'd figured it may be the case. Well, then the latest thing that comes into my mind is to rewrite your MultiJob logic into a declarative pipeline and use[pararell](https://jenkins.io/doc/book/pipeline/syntax/#parallel)
block to run things in parallel. Is this doable for your project? I don't know any workarounds for such case for MultiJob.
– Raoslaw Szamszur
Nov 22 '18 at 14:58
2
@RaoslawSzamszur, I think your answer is the correct approach (I didn't test your code myself so I can't vote up yet). Still, there are some features of multiJob that cannot be achieved with 'parallel' step, but for what Prashanth Sams needs, it seems good enough.
– yorammi
Nov 22 '18 at 21:13
1
I've provided an answer for the additional question, I hope it will be good for you
– yorammi
Nov 24 '18 at 14:25
In the multi-job plugin, everything runs in parallel that is listed in the same "Phase". Just put those 3 jobs into one MultiJob Phase and you're set.
– Raoslaw Szamszur
Nov 22 '18 at 14:28
In the multi-job plugin, everything runs in parallel that is listed in the same "Phase". Just put those 3 jobs into one MultiJob Phase and you're set.
– Raoslaw Szamszur
Nov 22 '18 at 14:28
@RaoslawSzamszur Idea is to split 2 jobs in one phase and 1 job on another phase due to some internal project reasons
– Prashanth Sams
Nov 22 '18 at 14:46
@RaoslawSzamszur Idea is to split 2 jobs in one phase and 1 job on another phase due to some internal project reasons
– Prashanth Sams
Nov 22 '18 at 14:46
I'd figured it may be the case. Well, then the latest thing that comes into my mind is to rewrite your MultiJob logic into a declarative pipeline and use
[pararell](https://jenkins.io/doc/book/pipeline/syntax/#parallel)
block to run things in parallel. Is this doable for your project? I don't know any workarounds for such case for MultiJob.– Raoslaw Szamszur
Nov 22 '18 at 14:58
I'd figured it may be the case. Well, then the latest thing that comes into my mind is to rewrite your MultiJob logic into a declarative pipeline and use
[pararell](https://jenkins.io/doc/book/pipeline/syntax/#parallel)
block to run things in parallel. Is this doable for your project? I don't know any workarounds for such case for MultiJob.– Raoslaw Szamszur
Nov 22 '18 at 14:58
2
2
@RaoslawSzamszur, I think your answer is the correct approach (I didn't test your code myself so I can't vote up yet). Still, there are some features of multiJob that cannot be achieved with 'parallel' step, but for what Prashanth Sams needs, it seems good enough.
– yorammi
Nov 22 '18 at 21:13
@RaoslawSzamszur, I think your answer is the correct approach (I didn't test your code myself so I can't vote up yet). Still, there are some features of multiJob that cannot be achieved with 'parallel' step, but for what Prashanth Sams needs, it seems good enough.
– yorammi
Nov 22 '18 at 21:13
1
1
I've provided an answer for the additional question, I hope it will be good for you
– yorammi
Nov 24 '18 at 14:25
I've provided an answer for the additional question, I hope it will be good for you
– yorammi
Nov 24 '18 at 14:25
|
show 6 more comments
1 Answer
1
active
oldest
votes
Since you can't run those jobs in one multijob phase, as an alternative You could use Jenkins pipeline job (Pipeline docs). Parallel stages execution can be achieved by using declarative pipeline parallel
block. A dummy example of how your MultiJob could be achieved with pipeline:
pipeline {
agent any
stages {
stage('MultiJob like stage') {
parallel {
stage('Parallel Test') {
steps {
echo "Here trigger job: allure_behave. Triggered at time:"
sh(script: "date -u")
// build(job: "allure_behave")
}
}
stage('Parallel Test 2') {
steps {
echo "Here trigger job: allure_behave_new. Triggered at time:"
sh(script: "date -u")
// build(job: "allure_behave_new")
echo "Here trigger job: allure_behave_old. Triggered at time:"
sh(script: """date -u""")
// build(job: "allure_behave_old")
}
}
}
}
}
}
In this case, You have a Stage called MultiJob like stage
which has substages Parallel Test
and Parallel Test 2
just like in your MultiJob. The difference is that both of those sub stages are being executed in parallel.
To trigger other jobs from inside the pipeline job use build
step:
build(job: "job-name")
Or if you need to run it with parameters then just add parameters
build()
option:
build(job: "${JOB_NAME}", parameters: [string(name: 'ENVNAME', value: 'EXAMPLE_STR_PARAM')])
Blue Ocean View:
Output:
Running on Jenkins in /var/jenkins_home/workspace/Dummy_pipeline
[Pipeline] {
[Pipeline] stage
[Pipeline] { (MultiJob like stage)
[Pipeline] parallel
[Pipeline] { (Branch: Parallel Test)
[Pipeline] { (Branch: Parallel Test 2)
[Pipeline] stage
[Pipeline] { (Parallel Test)
[Pipeline] stage
[Pipeline] { (Parallel Test 2)
[Pipeline] echo
Here trigger job: allure_behave. Triggered at time:
[Pipeline] sh
[Pipeline] echo
Here trigger job: allure_behave_new. Triggered at time:
[Pipeline] sh
+ date -u
Thu Nov 22 18:48:56 UTC 2018
+ date -u
Thu Nov 22 18:48:56 UTC 2018
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] echo
Here trigger job: allure_behave_old. Triggered at time:
[Pipeline] sh
+ date -u
Thu Nov 22 18:48:56 UTC 2018
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // parallel
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
Finished: SUCCESS
Is this alternative valid for your use case?
Regards
it did work; thanks for the help :)
– Prashanth Sams
Nov 24 '18 at 10:19
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53431587%2fhow-to-run-two-jenkins-multi-phase-jobs-at-the-same-time%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Since you can't run those jobs in one multijob phase, as an alternative You could use Jenkins pipeline job (Pipeline docs). Parallel stages execution can be achieved by using declarative pipeline parallel
block. A dummy example of how your MultiJob could be achieved with pipeline:
pipeline {
agent any
stages {
stage('MultiJob like stage') {
parallel {
stage('Parallel Test') {
steps {
echo "Here trigger job: allure_behave. Triggered at time:"
sh(script: "date -u")
// build(job: "allure_behave")
}
}
stage('Parallel Test 2') {
steps {
echo "Here trigger job: allure_behave_new. Triggered at time:"
sh(script: "date -u")
// build(job: "allure_behave_new")
echo "Here trigger job: allure_behave_old. Triggered at time:"
sh(script: """date -u""")
// build(job: "allure_behave_old")
}
}
}
}
}
}
In this case, You have a Stage called MultiJob like stage
which has substages Parallel Test
and Parallel Test 2
just like in your MultiJob. The difference is that both of those sub stages are being executed in parallel.
To trigger other jobs from inside the pipeline job use build
step:
build(job: "job-name")
Or if you need to run it with parameters then just add parameters
build()
option:
build(job: "${JOB_NAME}", parameters: [string(name: 'ENVNAME', value: 'EXAMPLE_STR_PARAM')])
Blue Ocean View:
Output:
Running on Jenkins in /var/jenkins_home/workspace/Dummy_pipeline
[Pipeline] {
[Pipeline] stage
[Pipeline] { (MultiJob like stage)
[Pipeline] parallel
[Pipeline] { (Branch: Parallel Test)
[Pipeline] { (Branch: Parallel Test 2)
[Pipeline] stage
[Pipeline] { (Parallel Test)
[Pipeline] stage
[Pipeline] { (Parallel Test 2)
[Pipeline] echo
Here trigger job: allure_behave. Triggered at time:
[Pipeline] sh
[Pipeline] echo
Here trigger job: allure_behave_new. Triggered at time:
[Pipeline] sh
+ date -u
Thu Nov 22 18:48:56 UTC 2018
+ date -u
Thu Nov 22 18:48:56 UTC 2018
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] echo
Here trigger job: allure_behave_old. Triggered at time:
[Pipeline] sh
+ date -u
Thu Nov 22 18:48:56 UTC 2018
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // parallel
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
Finished: SUCCESS
Is this alternative valid for your use case?
Regards
it did work; thanks for the help :)
– Prashanth Sams
Nov 24 '18 at 10:19
add a comment |
Since you can't run those jobs in one multijob phase, as an alternative You could use Jenkins pipeline job (Pipeline docs). Parallel stages execution can be achieved by using declarative pipeline parallel
block. A dummy example of how your MultiJob could be achieved with pipeline:
pipeline {
agent any
stages {
stage('MultiJob like stage') {
parallel {
stage('Parallel Test') {
steps {
echo "Here trigger job: allure_behave. Triggered at time:"
sh(script: "date -u")
// build(job: "allure_behave")
}
}
stage('Parallel Test 2') {
steps {
echo "Here trigger job: allure_behave_new. Triggered at time:"
sh(script: "date -u")
// build(job: "allure_behave_new")
echo "Here trigger job: allure_behave_old. Triggered at time:"
sh(script: """date -u""")
// build(job: "allure_behave_old")
}
}
}
}
}
}
In this case, You have a Stage called MultiJob like stage
which has substages Parallel Test
and Parallel Test 2
just like in your MultiJob. The difference is that both of those sub stages are being executed in parallel.
To trigger other jobs from inside the pipeline job use build
step:
build(job: "job-name")
Or if you need to run it with parameters then just add parameters
build()
option:
build(job: "${JOB_NAME}", parameters: [string(name: 'ENVNAME', value: 'EXAMPLE_STR_PARAM')])
Blue Ocean View:
Output:
Running on Jenkins in /var/jenkins_home/workspace/Dummy_pipeline
[Pipeline] {
[Pipeline] stage
[Pipeline] { (MultiJob like stage)
[Pipeline] parallel
[Pipeline] { (Branch: Parallel Test)
[Pipeline] { (Branch: Parallel Test 2)
[Pipeline] stage
[Pipeline] { (Parallel Test)
[Pipeline] stage
[Pipeline] { (Parallel Test 2)
[Pipeline] echo
Here trigger job: allure_behave. Triggered at time:
[Pipeline] sh
[Pipeline] echo
Here trigger job: allure_behave_new. Triggered at time:
[Pipeline] sh
+ date -u
Thu Nov 22 18:48:56 UTC 2018
+ date -u
Thu Nov 22 18:48:56 UTC 2018
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] echo
Here trigger job: allure_behave_old. Triggered at time:
[Pipeline] sh
+ date -u
Thu Nov 22 18:48:56 UTC 2018
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // parallel
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
Finished: SUCCESS
Is this alternative valid for your use case?
Regards
it did work; thanks for the help :)
– Prashanth Sams
Nov 24 '18 at 10:19
add a comment |
Since you can't run those jobs in one multijob phase, as an alternative You could use Jenkins pipeline job (Pipeline docs). Parallel stages execution can be achieved by using declarative pipeline parallel
block. A dummy example of how your MultiJob could be achieved with pipeline:
pipeline {
agent any
stages {
stage('MultiJob like stage') {
parallel {
stage('Parallel Test') {
steps {
echo "Here trigger job: allure_behave. Triggered at time:"
sh(script: "date -u")
// build(job: "allure_behave")
}
}
stage('Parallel Test 2') {
steps {
echo "Here trigger job: allure_behave_new. Triggered at time:"
sh(script: "date -u")
// build(job: "allure_behave_new")
echo "Here trigger job: allure_behave_old. Triggered at time:"
sh(script: """date -u""")
// build(job: "allure_behave_old")
}
}
}
}
}
}
In this case, You have a Stage called MultiJob like stage
which has substages Parallel Test
and Parallel Test 2
just like in your MultiJob. The difference is that both of those sub stages are being executed in parallel.
To trigger other jobs from inside the pipeline job use build
step:
build(job: "job-name")
Or if you need to run it with parameters then just add parameters
build()
option:
build(job: "${JOB_NAME}", parameters: [string(name: 'ENVNAME', value: 'EXAMPLE_STR_PARAM')])
Blue Ocean View:
Output:
Running on Jenkins in /var/jenkins_home/workspace/Dummy_pipeline
[Pipeline] {
[Pipeline] stage
[Pipeline] { (MultiJob like stage)
[Pipeline] parallel
[Pipeline] { (Branch: Parallel Test)
[Pipeline] { (Branch: Parallel Test 2)
[Pipeline] stage
[Pipeline] { (Parallel Test)
[Pipeline] stage
[Pipeline] { (Parallel Test 2)
[Pipeline] echo
Here trigger job: allure_behave. Triggered at time:
[Pipeline] sh
[Pipeline] echo
Here trigger job: allure_behave_new. Triggered at time:
[Pipeline] sh
+ date -u
Thu Nov 22 18:48:56 UTC 2018
+ date -u
Thu Nov 22 18:48:56 UTC 2018
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] echo
Here trigger job: allure_behave_old. Triggered at time:
[Pipeline] sh
+ date -u
Thu Nov 22 18:48:56 UTC 2018
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // parallel
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
Finished: SUCCESS
Is this alternative valid for your use case?
Regards
Since you can't run those jobs in one multijob phase, as an alternative You could use Jenkins pipeline job (Pipeline docs). Parallel stages execution can be achieved by using declarative pipeline parallel
block. A dummy example of how your MultiJob could be achieved with pipeline:
pipeline {
agent any
stages {
stage('MultiJob like stage') {
parallel {
stage('Parallel Test') {
steps {
echo "Here trigger job: allure_behave. Triggered at time:"
sh(script: "date -u")
// build(job: "allure_behave")
}
}
stage('Parallel Test 2') {
steps {
echo "Here trigger job: allure_behave_new. Triggered at time:"
sh(script: "date -u")
// build(job: "allure_behave_new")
echo "Here trigger job: allure_behave_old. Triggered at time:"
sh(script: """date -u""")
// build(job: "allure_behave_old")
}
}
}
}
}
}
In this case, You have a Stage called MultiJob like stage
which has substages Parallel Test
and Parallel Test 2
just like in your MultiJob. The difference is that both of those sub stages are being executed in parallel.
To trigger other jobs from inside the pipeline job use build
step:
build(job: "job-name")
Or if you need to run it with parameters then just add parameters
build()
option:
build(job: "${JOB_NAME}", parameters: [string(name: 'ENVNAME', value: 'EXAMPLE_STR_PARAM')])
Blue Ocean View:
Output:
Running on Jenkins in /var/jenkins_home/workspace/Dummy_pipeline
[Pipeline] {
[Pipeline] stage
[Pipeline] { (MultiJob like stage)
[Pipeline] parallel
[Pipeline] { (Branch: Parallel Test)
[Pipeline] { (Branch: Parallel Test 2)
[Pipeline] stage
[Pipeline] { (Parallel Test)
[Pipeline] stage
[Pipeline] { (Parallel Test 2)
[Pipeline] echo
Here trigger job: allure_behave. Triggered at time:
[Pipeline] sh
[Pipeline] echo
Here trigger job: allure_behave_new. Triggered at time:
[Pipeline] sh
+ date -u
Thu Nov 22 18:48:56 UTC 2018
+ date -u
Thu Nov 22 18:48:56 UTC 2018
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] echo
Here trigger job: allure_behave_old. Triggered at time:
[Pipeline] sh
+ date -u
Thu Nov 22 18:48:56 UTC 2018
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // parallel
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
Finished: SUCCESS
Is this alternative valid for your use case?
Regards
answered Nov 22 '18 at 18:28
Raoslaw SzamszurRaoslaw Szamszur
910415
910415
it did work; thanks for the help :)
– Prashanth Sams
Nov 24 '18 at 10:19
add a comment |
it did work; thanks for the help :)
– Prashanth Sams
Nov 24 '18 at 10:19
it did work; thanks for the help :)
– Prashanth Sams
Nov 24 '18 at 10:19
it did work; thanks for the help :)
– Prashanth Sams
Nov 24 '18 at 10:19
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53431587%2fhow-to-run-two-jenkins-multi-phase-jobs-at-the-same-time%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
In the multi-job plugin, everything runs in parallel that is listed in the same "Phase". Just put those 3 jobs into one MultiJob Phase and you're set.
– Raoslaw Szamszur
Nov 22 '18 at 14:28
@RaoslawSzamszur Idea is to split 2 jobs in one phase and 1 job on another phase due to some internal project reasons
– Prashanth Sams
Nov 22 '18 at 14:46
I'd figured it may be the case. Well, then the latest thing that comes into my mind is to rewrite your MultiJob logic into a declarative pipeline and use
[pararell](https://jenkins.io/doc/book/pipeline/syntax/#parallel)
block to run things in parallel. Is this doable for your project? I don't know any workarounds for such case for MultiJob.– Raoslaw Szamszur
Nov 22 '18 at 14:58
2
@RaoslawSzamszur, I think your answer is the correct approach (I didn't test your code myself so I can't vote up yet). Still, there are some features of multiJob that cannot be achieved with 'parallel' step, but for what Prashanth Sams needs, it seems good enough.
– yorammi
Nov 22 '18 at 21:13
1
I've provided an answer for the additional question, I hope it will be good for you
– yorammi
Nov 24 '18 at 14:25