Skip to content

Commit

Permalink
add docs for jenkins scripts integration
Browse files Browse the repository at this point in the history
  • Loading branch information
OriHoch committed Apr 17, 2019
1 parent df5dc17 commit b87f504
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,24 @@ curl -L "https://raw.githubusercontent.com/ViderumGlobal/ckan-cloud-operator/${C
| tee /dev/stderr \
| if [ "${SCRIPT_EXT}" == "py" ]; then python3; else bash; fi
```

## Jenkins integration

* Set job name the same as a script name
* Define the args as parameters for the job

For .sh scripts:

```
export CKAN_CLOUD_OPERATOR_VERSION="v0.2.2"
curl -L "https://raw.githubusercontent.com/ViderumGlobal/ckan-cloud-operator/${CKAN_CLOUD_OPERATOR_VERSION}/scripts/$(echo "$JOB_NAME" | sed 's/ /%20/g').sh" \
| tee /dev/stderr | bash
```

For .py scripts:

```
export CKAN_CLOUD_OPERATOR_VERSION="v0.2.2"
curl -L "https://raw.githubusercontent.com/ViderumGlobal/ckan-cloud-operator/${CKAN_CLOUD_OPERATOR_VERSION}/scripts/$(echo "$JOB_NAME" | sed 's/ /%20/g').py" \
| tee /dev/stderr | python3
```

0 comments on commit b87f504

Please sign in to comment.