9e5c369133
- created jenkins file linter script - created vim script for validating jenkinsfiles - adapt all configs to use secrets - load secrets from hidden file + vim script - tune vim (plugins - icons/fonts/features...) - new aliases (music, jira, git, ...)
10 lines
339 B
Bash
Executable File
10 lines
339 B
Bash
Executable File
#!/usr/bin/env bash
|
|
function _checkci() {
|
|
local username
|
|
username="$(git config --global -l | grep "user.email" | cut -d'@' -f1 | cut -d'=' -f2)"
|
|
local jenkinsfile="${1:-Jenkinsfile}"
|
|
curl --user "$username:$JENKINS_SECRET" -X POST -F "jenkinsfile=<$jenkinsfile" "$JENKINS_URL/pipeline-model-converter/validate"
|
|
}
|
|
_checkci "$*"
|
|
exit 0
|