Discussion:
can I have concurrent steps in a pipeline?
Don Raikes
2018-10-17 15:34:33 UTC
Permalink
Hi,



I am planning my first pipeline job, but I am not sure how to tell jenkins to run two of the steps concurrently.



Job outline:



Step 1. Clone from git

Step 2: build code from repository

Step 3: start burpsuite security proxy

Step 4: run tests on built code.



Steps 3 and 4 need to be run concurrently. Step 3 starting burpsuite needs to start first, then once burpsuite is running step 4 needs to run to proxy my tests through burpsuite. The automated tests in step 4 will finish then burpsuite will continue processing for some time after the tests have completed.



What is the best way to accomplish this? I want Jenkins to notify me when the burpsuite processing is complete and to archive the burpsuite reports.



Thanks,

Don
--
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/2bba8324-25b6-415f-bd9d-6ddefd99fac6%40default.
For more options, visit https://groups.google.com/d/optout.
Slide
2018-10-17 15:41:53 UTC
Permalink
Depending on whether you are using scripted or declarative pipelines it's
done a little differently. Here is the declarative way:
https://jenkins.io/blog/2017/09/25/declarative-1/. Here is the scripted
way:
https://stackoverflow.com/questions/46834998/scripted-jenkinsfile-parallel-stage
Post by Don Raikes
Hi,
I am planning my first pipeline job, but I am not sure how to tell jenkins
to run two of the steps concurrently.
Step 1. Clone from git
Step 2: build code from repository
Step 3: start burpsuite security proxy
Step 4: run tests on built code.
Steps 3 and 4 need to be run concurrently. Step 3 starting burpsuite
needs to start first, then once burpsuite is running step 4 needs to run to
proxy my tests through burpsuite. The automated tests in step 4 will
finish then burpsuite will continue processing for some time after the
tests have completed.
What is the best way to accomplish this? I want Jenkins to notify me when
the burpsuite processing is complete and to archive the burpsuite reports.
Thanks,
Don
--
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/2bba8324-25b6-415f-bd9d-6ddefd99fac6%40default
<https://groups.google.com/d/msgid/jenkinsci-users/2bba8324-25b6-415f-bd9d-6ddefd99fac6%40default?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/CAPiUgVcHTO2oiXjH78y7D%2BKsq8MMrUyf0oJ77O%3DLcfbFLfsjQg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Beushausen, Christian
2018-10-18 05:41:15 UTC
Permalink
Hi Don,

Why do step 3 and 4 have to run concurrently?
It sounds to me that burpsuite could be started as step 3, listening for connections. Then execute step 4 that runs against the running burpsuite instance. As a post step you could then let burpsuite finish processing whatever it's doing and then shut it down. Notify and archive afterwards as needed.
If step 4 fails have your post step handle the error accordingly.


Mit freundlichen Gruessen/Best regards,

Christian Beushausen
I S&T PD SW SWF
Interior Systems & Technology

Besucheradresse / Visitor address:
Continental Automotive GmbH
Philipsstrasse 1, 35576 Wetzlar, Germany

Rechnungsadresse / Invoice address:
Continental Automotive GmbH
Philipsstrasse 1, 35576 Wetzlar, Germany

Phone: +49 6441 370-9031
Mobile: +49 151 746 602 27
Fax: +49 6441 37013-9031
E-Mail: ***@continental-corporation.com<mailto:***@continental-corporation.com>

<$$014!>

________________________________
From: Don Raikes <***@ORACLE.COM>
Sent: Wednesday, October 17, 2018 5:34:33 PM
To: jenkinsci-***@googlegroups.com
Subject: can I have concurrent steps in a pipeline?

Hi,

I am planning my first pipeline job, but I am not sure how to tell jenkins to run two of the steps concurrently.

Job outline:

Step 1. Clone from git
Step 2: build code from repository
Step 3: start burpsuite security proxy
Step 4: run tests on built code.

Steps 3 and 4 need to be run concurrently. Step 3 starting burpsuite needs to start first, then once burpsuite is running step 4 needs to run to proxy my tests through burpsuite. The automated tests in step 4 will finish then burpsuite will continue processing for some time after the tests have completed.

What is the best way to accomplish this? I want Jenkins to notify me when the burpsuite processing is complete and to archive the burpsuite reports.

Thanks,
Don

--
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<mailto:jenkinsci-users+***@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/2bba8324-25b6-415f-bd9d-6ddefd99fac6%40default<https://groups.google.com/d/msgid/jenkinsci-users/2bba8324-25b6-415f-bd9d-6ddefd99fac6%40default?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

http://www.continental-corporation.com
________________________________________________________________________

Continental Automotive GmbH, Vahrenwalder Str. 9, D-30165 Hannover
Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Helmut Matschi
Geschaeftsfuehrer/Managing Director: Georg Sistermanns, Harald Stuhlmann
Sitz der Gesellschaft/Registered Office: Hannover
Registergericht/Registered Court: Amtsgericht Hannover, HRB 59424
USt.-ID-Nr./VAT-ID-No. DE814950663

______________________________________________________________________

Proprietary and confidential. Distribution only by express authority of Continental AG or its subsidiaries.
--
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/AM0PR0302MB3410537FF9CD15E992D82A83CFF80%40AM0PR0302MB3410.eurprd03.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Loading...