Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/j-oconnor/spinnaker-script
https://github.com/j-oconnor/spinnaker-script
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/j-oconnor/spinnaker-script
- Owner: j-oconnor
- Created: 2016-04-13T23:13:19.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-04-14T01:57:56.000Z (over 8 years ago)
- Last Synced: 2024-06-30T21:53:31.217Z (3 months ago)
- Language: Groovy
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spinnaker Script Stage Configuration.
Right now, the Spinnaker script stage consists of a jenkins script that calls a remote git repository. This directory helps you set up the script stage in Spinnaker.
## Script Repository
You will need to set up a git repository to keep track of your files. This directory contains a sample directory of scripts.
The groovy directory contains an example of how to interact with Spinnaker pipelines to retrieve a property from a stage.
*J's Note: Make sure any shell scripts are set with chmod +x permissions*
## Jenkins Job Import
The directory contains a jenkins job definition that you can import via:
`curl -X POST 'http://NEW_JENKINS/createItem?name=JOBNAME' -H "Content-Type: application/xml" --data-binary @scriptJobConfig.xml`
*J's Note: If may need to add a --user "user:pass" depending on your Jenkins Global security settings*
Once you have imported the script, modify the job to point to the script repository.
*J's Note: I also had to modify the restriction to only run the job on "Spinnaker"*
## Orca Configuration
To enable the script stage, you need to set the following properties in orca's orca.yml
```
script:
master: [igor alias for your jenkins master]
job: SPINNAKER-TASKS
```*J's Note: I used an orca-local.yml in /opt/spinnaker/config with just this one block in it. You can find the igor alias in your spinnaker-local.yml (assuming you have already configured one). Job should match the JOBNAME you set in the curl to import the job to Jenkins.
*J's Note: When configuring the script task on Spinnaker, I had to populate just the "Script Path" (./shell) and "Command" (echo_env.sh), I also populated the "Repository URL" with this github URL, but I'm not sure if that actually makes any difference.