curl -X POST -u admin:123456 "http://jenkins.com/job/devops_release/job/framework-devops/buildWithParameters?PROJECT=framework-devops&IMAGE_TAG=origin_master_2fc33000c276e5b9fc26f253de75353b1a5264c6_23&NAMESPACE=infra11&REPLICAS=2"
解释
-u admin:123456 指定帐号密码
http://jenkins.com/job/devops_release/job/framework-devops/ devops_release文件夹下的工程framework-devops
buildWithParameters?PROJECT=framework-devops&IMAGE_TAG=origin_master_2fc33000c276e5b9fc26f253de75353b1a5264c6_23&NAMESPACE=infra11&REPLICAS=2
传入4个参数
PROJECT=framework-devops
IMAGE_TAG=origin_master_2fc33000c276e5b9fc26f253de75353b1a5264c6_23
NAMESPACE=infra11
REPLICAS=2
工程有默认值就会自动覆盖
版本:Jenkins ver. 2.204.5