https://github.com/framna-sysadmin/jenkins-node-labeler
Automagically add labels to macOS Jenkins nodes
https://github.com/framna-sysadmin/jenkins-node-labeler
ios jenkins macos
Last synced: 8 months ago
JSON representation
Automagically add labels to macOS Jenkins nodes
- Host: GitHub
- URL: https://github.com/framna-sysadmin/jenkins-node-labeler
- Owner: move-sysadmin
- License: mit
- Created: 2020-09-17T11:31:41.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-08-13T07:51:30.000Z (almost 2 years ago)
- Last Synced: 2024-12-27T02:21:39.090Z (over 1 year ago)
- Topics: ios, jenkins, macos
- Language: Python
- Size: 13.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Jenkins Node Labeler
Adds a bunch of labels to macOS nodes in Jenkins.
- macOS version (`sw_vers -productVersion`)
- XCode version and XCode major version (`xcodebuild -version`)
- node name (`hostname`)
- system architecture (`uname -m`)
- additional labels
examples
`'iOS', 'xcode-13.1', 'xcode-13', 'macos-12.1', 'node-ios-build1', 'arch-arm64'`
## Settings
```
JENKINS_USERNAME="some_user"
JENKINS_APIKEY="API_KEY" #See https://www.jenkins.io/blog/2018/07/02/new-api-token-system/
JENKINS_HOST="https://jenkins.example.com"
JENKINS_ADDITIONAL_LABELS="Some-Label Other-label"
```