jenkins pipeline - how to add another parallel to 2 other parallel.

26 views
Skip to first unread message

Prashanth Linga

unread,
Sep 11, 2019, 5:59:17 AM9/11/19
to Jenkins Users
Hello friends / Jenkins Users,
I want stage 9 to be parallel to first and second parallel. stage 9 should finish before installer stage. Attached is existing diagram, proposed one to be created.
Either declarative or scripted is fine. .

Please share your ideas and thanks for taking time to look into this issue. I appreciate your response. Thank you.

pipeline {
    agent any
    environment {
        //TODO - this will apply to steps within this file    
    }
    stages {
        stage('Preparation') {
            steps {
                echo 'First stage'
            }//step for stage
        }
        stage ('parallel-1') {
            parallel {
                stage ('8') {
                    steps {
                        echo "stage-8" 
                        }
                    }
                stage ('7 6 5') {
                    stages ('stage Libraries'){
                        stage ('stage 7') { 
                            steps {
                                echo "stage 7"
                                }
                            }
                        stage ('stage 6'){
                            steps {
                                echo "stage 6"
                            }
                        }
                        stage ('stage 5'){
                            steps {
                            echo "stage 5"
                            }
                        }
                    }
                }
                stage ("stage 9") {
                    steps {
                        echo 'stage 9'
                    }

                }
            }
        }                
        stage ('parallel-2'){
            parallel  {
                stage ("stage 2") {
                    steps {
                        echo 'stage 2'
                    }
                }
                stage ("stage 3") {
                    steps {
                        echo 'stage 3'
                    }
                }
                stage ("stage 4") {
                    steps {
                        echo 'stage 4'
                    }
                }
            }
        }
        stage ('installer jackpot'){
            steps {
                echo 'inside jackpot'
            }
        }
    }
}
Capture.JPG

Beushausen, Christian

unread,
Sep 11, 2019, 10:17:27 AM9/11/19
to jenkins...@googlegroups.com

Hi Prashanth,

 

my understanding:
What you want to achieve is not possible with declarative pipeline.

You should be able to get this done with a scripted pipeline though. Note: Blue Ocean is not able to represent it.

 

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!>

--
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/7e4b02c5-a379-4a2a-a701-ec4108a81bc8%40googlegroups.com.


https://www.continental.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.

Prashanth Linga

unread,
Sep 12, 2019, 6:59:56 PM9/12/19
to Jenkins Users
Thanks and I appreciate your reply.

Do you have a example to build this up in both scripted and declarative pipeline.

Best regards,
Prashanth
Reply all
Reply to author
Forward
0 new messages