0
我配置了一個總共有4個軸點的Jenkins矩陣作業。對於每個軸,都有一個構建步驟(參數化觸發器)觸發另一個項目,添加當前構建參數。所有四個作業都使用不同的參數觸發相同的作業。Jenkins矩陣作業不觸發多個下游作業
我看到的問題是隻有一個淹沒流工作得到執行,我希望4
這不是一個生成後的任務,它是設置爲構建步驟。這是在參數觸發插件wiki頁面說明:
構建步驟
當使用參數化建設作爲buildstep 它會被稱爲對每個不同的配置觸發,所以如果觸發 另一沒有參數的項目將按照您的配置完成相同數量的 次,可能導致觸發作業 運行多次。
但是,這也允許您觸發與當前配置有關的參數 的其他作業,即觸發在具有相同JDK的同一節點上構建內聯。
這是下游的工作日誌條目,它顯示了所有的觸發器,但他們似乎都推出完全相同的作業:如果這有什麼差別,下游工作
Started by upstream project "AndroidLibraries_Mx_Branch_5_1_x/ProductType=video,SecurityType=standard" build number 12
originally caused by:
Started by upstream project "AndroidLibraries_Mx_Branch_5_1_x" build number 12
originally caused by:
Started by user anonymous
Started by upstream project "AndroidLibraries_Mx_Branch_5_1_x/ProductType=video,SecurityType=secure" build number 12
originally caused by:
Started by upstream project "AndroidLibraries_Mx_Branch_5_1_x" build number 12
originally caused by:
Started by user anonymous
Started by upstream project "AndroidLibraries_Mx_Branch_5_1_x/ProductType=voice,SecurityType=standard" build number 12
originally caused by:
Started by upstream project "AndroidLibraries_Mx_Branch_5_1_x" build number 12
originally caused by:
Started by user anonymous
Started by upstream project "AndroidLibraries_Mx_Branch_5_1_x/ProductType=voice,SecurityType=secure" build number 12
originally caused by:
Started by upstream project "AndroidLibraries_Mx_Branch_5_1_x" build number 12
originally caused by:
Started by user anonymous
[Pipeline] node
Running on master in /var/lib/jenkins/workspace/AndroidLibrary_pipeline
<... job details ... >
是一個管道工作,如名稱所示。
- 詹金斯2.19.2
- 矩陣插件1.7.1
- 參數觸發插件2.32
- 管道2.4
我已經做搜索的好一點,而我發現一個similar問題,接受的答案並沒有幫助。