【发布时间】:2013-08-07 19:59:59
【问题描述】:
我想在 jenkins 中使用环境变量定期构建:
#pseudo setting
H 17 * * * BUILD_FOR=gist-mail TOKEN_GIST_MAIL=some_token
H 17 * * * BUILD_FOR=pollyanna TOKEN_POLLYANNA=anothor_token
H 17 * * * BUILD_FOR=fenix-knight TOKEN_FENIX_KNIGHT=alternative_token
这些变量不会动态变化,预先给定。
我收到以下错误:
Invalid input: "10 17 * * * BUILD_FOR=fenix-knight": line 1:12: expecting EOF, found ' '
如何将不同的环境变量传递给每个构建触发器?我的工作是创建每个工作。
下面是我的执行shell:
gem install bundler
ruby -i -pe '$_.gsub! /^ruby/, "#ruby"' Gemfile
bundle
BUILD_FOR=fenix-knight bundle exec rake tachikoma:load tachikoma:fetch tachikoma:bundle tachikoma:pull_request
【问题讨论】:
标签: jenkins environment-variables