Advertisement
Guest User

Untitled

a guest
Mar 5th, 2015
334
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.66 KB | None | 0 0
  1. primeiraleidabuild(){
  2.     if [[ $MSG == *WILLFIX* ]]
  3.     then
  4.         return 0
  5.     fi
  6.     jsonfile=$(mktemp -u)
  7.     wget -q -O $jsonfile --auth-no-challenge --http-user=tonylampada --no-check-certificate --http-password=XXXXXXXXXXXXXXXXXX https://jenkins.qmagico.com.br/userContent/status_qmagico.json
  8.     branch=${REFNAME:11}
  9.     $TEMPDIR/ci/primeiraleidabuild.py $jsonfile $branch
  10.     exitcode=$?
  11.     rm $jsonfile
  12.     if [ $exitcode != 0 ]
  13.         then
  14.         echo -----------------------------------
  15.         echo Seu commit viola a 1a lei.
  16.         echo Detalhes acima
  17.         echo -----------------------------------
  18.         exit $exitcode
  19.     fi
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement