dotfiles/dot_scripts/checkci.sh
MorganGeek 228982a0a8 add linters and refactor bootstraping scripts
- giant refactoring
- add aliases and functions to ease work
- apply linters / fixers / fmt to most files
2020-07-11 12:31:06 +02:00

10 lines
351 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