diff options
author | Katarzyna Kobierska <kkobierska@gmail.com> | 2016-09-07 12:19:36 +0200 |
---|---|---|
committer | Katarzyna Kobierska <kkobierska@gmail.com> | 2016-09-07 12:19:36 +0200 |
commit | dac4c5bb5389b123a046d0e861443e124dc0e059 (patch) | |
tree | c62e3d5ebfd6ce77bf4657f27962bf845d119977 /doc/api | |
parent | 99d7b3ea0c7b97820ee25f12c4b77acc676a72b7 (diff) | |
download | gitlab-ce-dac4c5bb5389b123a046d0e861443e124dc0e059.tar.gz |
Fix invalid curl command
Diffstat (limited to 'doc/api')
-rw-r--r-- | doc/api/ci/lint.md | 41 |
1 files changed, 2 insertions, 39 deletions
diff --git a/doc/api/ci/lint.md b/doc/api/ci/lint.md index 89eafad740c..080bc2148f3 100644 --- a/doc/api/ci/lint.md +++ b/doc/api/ci/lint.md @@ -10,47 +10,10 @@ POST ci/lint | Attribute | Type | Required | Description | | ---------- | ------- | -------- | -------- | -| `content` | hash | yes | the .gitlab-ci.yaml content| +| `content` | string | yes | the .gitlab-ci.yaml content| ```bash -curl --request POST "https://gitlab.example.com/api/v3/ci/lint?content={ - image: "ruby:2.1", - services: ["postgres"], - before_script: ["gem install bundler", "bundle install", "bundle exec rake db:create"], - variables: {"DB_NAME": "postgres"}, - types: ["test", "deploy", "notify"], - rspec: { - script: "rake spec", - tags: ["ruby", "postgres"], - only: ["branches"] - }, - spinach: { - script: "rake spinach", - allow_failure: true, - tags: ["ruby", "mysql"], - except: ["tags"] - }, - staging: { - variables: {KEY1: "value1", KEY2: "value2"}, - script: "cap deploy stating", - type: "deploy", - tags: ["ruby", "mysql"], - except: ["stable"] - }, - production: { - variables: {DB_NAME: "mysql"}, - type: "deploy", - script: ["cap deploy production", "cap notify"], - tags: ["ruby", "mysql"], - only: ["master", "/^deploy-.*$/"] - }, - dockerhub: { - type: "notify", - script: "curl http://dockerhub/URL", - tags: ["ruby", "postgres"], - only: ["branches"] - } -}" +curl -H "Content-Type: application/json" --request POST https://gitlab.example.com/api/v3/ci/lint -d '{"content": "{ \"image\": \"ruby:2.1\", \"services\": [\"postgres\"], \"before_script\": [\"gem install bundler\", \"bundle install\", \"bundle exec rake db:create\"], \"variables\": {\"DB_NAME\": \"postgres\"}, \"types\": [\"test\", \"deploy\", \"notify\"], \"rspec\": { \"script\": \"rake spec\", \"tags\": [\"ruby\", \"postgres\"], \"only\": [\"branches\"]}}"}' ``` Be sure to copy paste the exact contents of `.gitlab-ci.yml` as YAML is very picky about indentation and spaces. |