diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-06-03 14:20:15 +0000 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-06-03 14:20:15 +0000 |
commit | c2c9236cde807e98ff9571f8d23ac4def75eb9ba (patch) | |
tree | d73a723a36681d83187e6c75a4b444315d943a9c /doc/api/projects.md | |
parent | a5b1a3a538bf59e49aea86d7ce2013c0a8d3ac2d (diff) | |
parent | 27a3fe8b98798861dc637b2642de24af3ea12d24 (diff) | |
download | gitlab-ci-c2c9236cde807e98ff9571f8d23ac4def75eb9ba.tar.gz |
Merge branch 'jobs_in_yml' into 'master'
CI configuration with .gitlab-ci.yml
https://dev.gitlab.org/gitlab/gitlab-ci/issues/245
Example:
```
# Refs to skip
skip_refs: “deploy*”
# Run before each script
before_script:
- export PATH=$HOME/bin:/usr/local/bin:/usr/bin:/bin
- gem install bundler
- cp config/database.yml.mysql config/database.yml
- cp config/gitlab.yml.example config/gitlab.yml
- touch log/application.log
- touch log/test.log
- bundle install --without postgres production --jobs $(nproc)
- bundle exec rake db:create RAILS_ENV=test
# Parallel jobs, each line is parallel build
jobs:
- script: “rake spec”
runner: “ruby,postgres”
name: “Rspec”
- script: “rake spinach”
runner: “ruby,mysql”
name: “Spinach”
tags: true
branches: false
# Parallel deploy jobs
deploy_jobs:
“cap deploy production”
“cap deploy staging”
```
See merge request !110
Diffstat (limited to 'doc/api/projects.md')
-rw-r--r-- | doc/api/projects.md | 59 |
1 files changed, 1 insertions, 58 deletions
diff --git a/doc/api/projects.md b/doc/api/projects.md index bdc9862..c24d48f 100644 --- a/doc/api/projects.md +++ b/doc/api/projects.md @@ -151,61 +151,4 @@ via authorized user). Parameters: * `id` (required) - The ID of the Gitlab CI project - * `runner_id` (required) - The ID of the Gitlab CI runner - -### List All Jobs for a Project - -List the jobs associated to a Gitlab CI Project (only via -authorized user). - - GET /projects/:id/jobs - -Parameters: - - * `id` (required) - The ID of the Gitlab CI project - -### Add a parallel Job to a Project - -Adds a Job to a Gitlab CI Project (only via -authorized user). - - POST /projects/:id/jobs - -Parameters: - - * `id` (required) - The ID of the Gitlab CI project - * `name` (required) - The name of the Job to add - * `commands` (required) - The script commands of the job - * `active` (optional) - The command is active of not - * `build_branches` (optional) - Trigger commit builds - * `build_tags` (optional) - Trigger tag builds - * `tags` (optional) - The tags associated with this job - -### Add a deploy Job to a Project - -Adds a deploy Job to a Gitlab CI Project (only via -authorized user). - - POST /projects/:id/deploy_jobs - -Parameters: - - * `id` (required) - The ID of the Gitlab CI project - * `name` (required) - The name of the Job to add - * `commands` (required) - The script commands of the job - * `active` (optional) - The command is active of not - * `refs` (optional) - The list of refs - * `tags` (optional) - The tags associated with this job - -### Remove a Job from a Project - -Removes a Job from a Gitlab CI Project (only -via authorized user). - - DELETE /projects/:id/jobs/:job_id - -Parameters: - - * `id` (required) - The ID of the Gitlab CI project - * `job_id` (required) - The ID of the Job - + * `runner_id` (required) - The ID of the Gitlab CI runner
\ No newline at end of file |