0
如何通過curl參數化觸發器來觸發pipeline/jenkinsfile語法?Jenkins參數化流水線失敗
我在與啓動管道:
pipeline{
parameters {
string(name: 'mycommitid', defaultValue: 'nocommit', description: 'my parameterized build')
}
properties([
parameters([
string(defaultValue: 'nocommit', description: 'fas', name: 'mycommitid')
])
])
node{...}
}
通過在代碼我管線設置,這將不會被觸發,只有當我手動設置在建觸發詹金斯部分。但目標是在多分支管道和jenkins文件中使用它。
我得到的輸出是(這裏的哈希值是一些隨機數我輸入爲例):
git rev-parse 4364576456fgds467734ss344c^{commit} # timeout=10
ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.
Finished: FAILURE
而且具有提交過去了,你怎麼勸,我應該只建立一個單一的版本嗎?
這將解決這個問題,但在多支管的問題停留在那裏你可以不保存作業的配置,一切都必須在jenkinsfile有內配置 – koller23