7 # we only support verify, merge, daily and weekly jobs
8 if [[ "$JOB_NAME" =~ (verify|merge|daily|weekly) ]]; then
9 JOB_TYPE=${BASH_REMATCH[0]}
11 echo "Unable to determine job type!"
15 # do stuff differently based on the job type
18 echo "Running as part of verify job"
21 echo "Running as part of merge job"
24 echo "Running as part of daily job"
27 echo "Running as part of weekly job"
30 echo "Job type $JOB_TYPE is not supported!"
34 # this just shows we can get the patch/commit information
35 # no matter what job we are executed by
38 echo "Commit Message is"
39 echo "-------------------------------------"
40 git log --format=%B -n 1 $(git rev-parse HEAD)
41 echo "-------------------------------------"
44 echo "-------------------------------------"
46 echo "-------------------------------------"
48 echo "Changed files are"
49 echo "-------------------------------------"
50 git diff origin/master --name-only
51 echo "-------------------------------------"
53 echo "Change introduced"
54 echo "-------------------------------------"
55 git diff origin/master
56 echo "-------------------------------------"
59 echo "-------------------------------------"
61 echo "-------------------------------------"