Created
September 21, 2020 06:39
-
-
Save copuzzle/5b220a47f77fb66f891c1ec5f78801d0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
当不使用 multi pipline 的时候 ,配置 hook: | |
``` | |
如果用户名有 @ 符号,转码成 %40 | |
这样可以在命令行调用: | |
curl -X POST https://aaa%40bb.cc:115xxxxxxxxxxxxxxxxxxxxxx5bxx@my.job.host/job/my-job-one/build | |
git webhook 则直接使用以下地址: | |
https://aaa%40bb.cc:115xxxxxxxxxxxxxxxxxxxxxx5bxx@my.job.host/job/my-job-one/build | |
``` | |
ref: | |
api: | |
https://medium.com/@narenchejara/trigger-jenkins-job-remotely-using-jenkins-api-20973618a493 | |
https://stackoverflow.com/questions/42817169/jenkins-trigger-builds-remotely-authentication-token-option-missing | |
https://www.jenkins.io/doc/book/system-administration/authenticating-scripted-clients/ | |
urlcode: | |
https://stackoverflow.com/questions/10060093/special-characters-like-and-in-curl-post-data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment