3
在一個多分支管道作業中,我配置了構建(基本linting)來掃描jenkins文件的分支。但我仍然需要手動執行此構建。我可以設置什麼屬性來啓用對GitHub的輪詢,或者甚至更好,在新提交時觸發。如何觸發多分支管道構建提交分支?
通常,我試圖找到一種方法來了解如何將所有GUI字段映射到我可以在properties();
方法中使用的密鑰。我無法在GUI表單字段和腳本鍵值選項之間進行轉換。
node('master') {
properties([
[$class: 'BuildDiscarderProperty', strategy: [$class: 'LogRotator', artifactDaysToKeepStr: '', artifactNumToKeepStr: '', daysToKeepStr: '', numToKeepStr: '10']],
[$class: 'BuildTriggerProperty???', strategy: 'Build when a change is pushed to GitHub???']
]);
...
}
詹金斯2.7版
這似乎並不總是工作。我發現他們似乎與作業xml中暴露的內容相同。 '/job//api/xml' –
tarabyte