bazooka-ci / bazooka

Continuous Integration and Continuous Deployment Server
http://docs.bazooka-ci.io/
MIT License
60 stars 5 forks source link

Inject global job parameters #250

Open haklop opened 9 years ago

haklop commented 9 years ago

Enable job parameters to be set on project side.

Can be use to defined default parameters values.

Add a new command: bzk project env

Usage: bzk project env  COMMAND [arg...]

View or modify a bazooka project environment variable

Commands:
  list         List project environment variables
  get          Get a specific project environment variable
  set          Set a specific project environment variable
  unset        Delete a specific project configuration key

bzk project env my-project A 5 sets the default value of A to 5 for the project my-project. This value is used if a job is started without specify a value for A.

Permutation is not yet possible (wip, it'll come on another PR). Permutations can only be generated by using bzk job start command.

julienvey commented 9 years ago

Tested, LGTM

jawher commented 9 years ago

Just so we don't forget, we agreed with @haklop that project env should be multivalued, i.g:

bzk project env set GOMAXPROCS 1 2 3 4
jawher commented 9 years ago

And don't forget to update the doc to explain the 3 override levels: bazooka.yml -> project env -> job parameters.