1
在詢問此問題之前,我試着查看Jenkins管道文檔,更重要的是看到issue JENKINS-38442。Jenkins管道 - 僅在最後階段合併的並行階段
我想創建一個管道,看起來像這樣:
基本上,我想並行階段在不同的階段,而不是下一階段本身合併。這可能嗎?
我能做到目前爲止最好的僅僅是這樣的:
下面是產生上述管道的管道代碼:
node {
def staticTests = [:]
staticTests["unit tests"] = {stage('unit'){ }}
staticTests["static analysis"] = {stage('static'){ }}
def tests = [:]
tests["functional"] = {stage('functional'){}}
tests["performance"] = {stage('performance'){}}
tests["security"] = {stage('security'){}}
stage('prepare'){}
stage('tests'){parallel(staticTests)}
stage('build'){}
stage('int'){}
stage('regression'){}
stage('qa'){}
stage('tests'){ parallel(tests) }
stage('prod'){}
}
什麼樣的變化將幫助我創造流水線根據需要在上面粘貼修改後的截圖?詹金斯管道今天甚至有可能嗎?預先感謝您的幫助!