https://github.com/zaporylie/jenkins-yaml
.jenkins.yml script runner
https://github.com/zaporylie/jenkins-yaml
Last synced: 10 months ago
JSON representation
.jenkins.yml script runner
- Host: GitHub
- URL: https://github.com/zaporylie/jenkins-yaml
- Owner: zaporylie
- License: mit
- Created: 2016-11-01T20:26:50.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-01T20:47:14.000Z (over 9 years ago)
- Last Synced: 2025-08-04T13:51:59.723Z (11 months ago)
- Language: Python
- Size: 2.93 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jenkins-yaml
.jenkins.yml script runner
## How to:
- Add .jenkins.yml to your repo
- Run `jenkins-yaml.runner` in your jenkins build
## .jenkins.yml
Syntax for .jenkins.yml is similar to .travis.yml, just simplified.
```yaml
job1:
- ls -la
- touch test
- chmod +x test
- ./test
job2:
- rm *
job3:
- curl -I http://www.google.com
```
## How to add it to Jenkins?
- Create freestyle Jenkins Job
- Add "Execute shell" in "Build" section
- Add single command - `jenkins-yaml.runner ` - where is has to match one of the parent keys in .jenkins.yml (i.e. `job2` from example above)
## Parameters
`jenkins-yaml.runner [--errors] [--missing-section] [--missing-file] `
- Use `--errors` if you don't want to break excution on first error
- Use `--missing-section` if script should return exit code > 0 for missing section in .jenkins.yml file
- Use `--missing-file` if script should return exit code > 0 for missing .jenkins.yml file