最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

continuous integration - Jenkins pass parameter from Git repository - Stack Overflow

programmeradmin1浏览0评论

I'm using an hook in my GIT repository to trigger a build in Jenkins. I'm using

curl http://<IP>/jenkins/job/Test/buildWithParameters?token=mytoken&PUSHEDGITTAG=0000

I created a job Test and I enabled the parametrized build using a string parameter called PUSHEDGITTAG. I'm using a simple build with shell step:

echo ${PUSHEDGITTAG}

The job is actually triggered but the variable is always empty. How come?

发布评论

评论列表(0)

  1. 暂无评论