diff options
author | Jean-Pierre Huynh <choupair@gmail.com> | 2019-06-27 10:23:12 +0000 |
---|---|---|
committer | Jean-Pierre Huynh <jp@cloudnc.com> | 2019-06-27 11:27:06 +0100 |
commit | bd6f47ac0cf36fceb2bff2e5d1721ec9e1b1db72 (patch) | |
tree | e0743b88869e7284d055a9bbbca9e27022c99677 /doc | |
parent | e7193f235643a4b53d82206a7771586bcc46c88a (diff) | |
download | gitlab-ce-bd6f47ac0cf36fceb2bff2e5d1721ec9e1b1db72.tar.gz |
Add `--globoff` flag to the curl command for Jobs API.
The existing command fail in some cases with the following error `curl: (3) [globbing] bad range specification in column 56`.
This was found when running cURL from a `python:3.7` container that comes with curl version `7.52.1`.
```
root@91963a56cd8f:/# curl --version
curl 7.52.1 (x86_64-pc-linux-gnu) libcurl/7.52.1 OpenSSL/1.0.2r zlib/1.2.8 libidn2/0.16 libpsl/0.17.0 (+libidn2/0.16) libssh2/1.7.0 nghttp2/1.18.1 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets HTTPS-proxy PSL
```
This doesn't seem to be an issue with `curl 7.58.0` but it doesn't hurt to have that flag enabled.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/jobs.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/jobs.md b/doc/api/jobs.md index 72973b69117..223bfed91a9 100644 --- a/doc/api/jobs.md +++ b/doc/api/jobs.md @@ -14,7 +14,7 @@ GET /projects/:id/jobs | `scope` | string **or** array of strings | no | Scope of jobs to show. Either one of or an array of the following: `created`, `pending`, `running`, `failed`, `success`, `canceled`, `skipped`, or `manual`. All jobs are returned if `scope` is not provided. | ```sh -curl --header "PRIVATE-TOKEN: <your_access_token>" 'https://gitlab.example.com/api/v4/projects/1/jobs?scope[]=pending&scope[]=running' +curl --globoff --header "PRIVATE-TOKEN: <your_access_token>" 'https://gitlab.example.com/api/v4/projects/1/jobs?scope[]=pending&scope[]=running' ``` Example of response |