| For good coding practice, at least static variables ought to be considered. I appreciate why stage names on any given pipeline ARE expected to be stable and concise. However, please reconsider for fixed variables assuming a pre-pass of pre-declared env. variables would be useful since convenient for ease of maintenance across multiple stages, especially when cloning (or generating) similar pipelines. pipeline { environment { ENV = 'DEV' PHASE = 'IT' DELIVERY = "DELI" BASE = "REGI" } stages { stage('1. Prepare ' + PHASE + ' DB') steps { script { println "Prepare " + PHASE + " to clean " + DELIVERY + " & " + BASE + " schemas within ${env.ENV} DB" : } } } stage('2. Generate ' + PHASE + 'Tests) steps { script { println "Generate " + PHASE + " for exec in both " + DELIVERY + " & " + BASE + " ${env.ENV} environments" : } } } // Exec parallel $PHASE tests : } } |