can I have concurrent steps in a pipeline?

13 views
Skip to first unread message

Don Raikes

unread,
Oct 17, 2018, 3:34:44 PM10/17/18
to jenkins...@googlegroups.com

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

Slide

unread,
Oct 17, 2018, 3:42:17 PM10/17/18
to jenkins...@googlegroups.com
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



--
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-use...@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.

Beushausen, Christian

unread,
Oct 18, 2018, 5:41:32 AM10/18/18
to jenkins...@googlegroups.com
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: Christian....@continental-corporation.com

<$$014!>


From: Don Raikes <DON.R...@ORACLE.COM>
Sent: Wednesday, October 17, 2018 5:34:33 PM
To: jenkins...@googlegroups.com
Subject: can I have concurrent steps in a pipeline?
 
--
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-use...@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.

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.

Reply all
Reply to author
Forward
0 new messages