~1chb1n/ubuntu-openstack-ci/mptest0

« back to all changes in this revision

Viewing changes to job-parts/trigger_by_mp_scanner.sh

  • Committer: Ryan Beisner
  • Date: 2016-02-23 14:26:10 UTC
  • mfrom: (30.2.201 ubuntu-openstack-ci)
  • Revision ID: ryan.beisner@canonical.com-20160223142610-g4tajprej8p21o08
Rebase parent

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/bash -e
2
 
env | sort > env
 
2
 
 
3
# Source the common functions
 
4
. ${OSCI_ROOT}/job-parts/osci_job_common.sh
 
5
 
 
6
f_skip_juju_lxc
 
7
 
 
8
f_fresh_clean_start
 
9
f_env_no_pass
 
10
 
3
11
cd $OSCI_ROOT
4
12
 
5
13
case "$TRIGGER_FINGER" in
6
14
  AUTO)
7
 
    ./scan_merge_props.py
 
15
    tools/scan_merge_props.py -d --XD
8
16
    ;;
9
17
  AUTO_DRY_RUN)
10
 
    ./scan_merge_props.py -0 -d
 
18
    tools/scan_merge_props.py -0 -d --XD
11
19
    ;;
12
20
  FORCE_AMULET_ONLY)
13
 
    ./scan_merge_props.py -F -N --XD --XL --XU
 
21
    tools/scan_merge_props.py -F -N --XD --XL --XU -d
14
22
    ;;
15
23
  FORCE_UNIT_ONLY)
16
 
    ./scan_merge_props.py -F -N --XD --XL --XA
 
24
    tools/scan_merge_props.py -F -N --XD --XL --XA -d
17
25
    ;;
18
26
  FORCE_DEPLOY_ONLY)
19
 
    ./scan_merge_props.py -F -N --XA --XL --XU
 
27
    tools/scan_merge_props.py -F -N --XA --XL --XU -d
20
28
    ;;
21
29
  FORCE_LINT_ONLY)
22
 
    ./scan_merge_props.py -F -N --XD --XA --XU
 
30
    tools/scan_merge_props.py -F -N --XD --XA --XU -d
23
31
    ;;
24
32
  FORCE_ALL)
25
 
    ./scan_merge_props.py -F -N
 
33
    tools/scan_merge_props.py -F -N -d
26
34
    ;;
27
35
  FORCE_ALL_DRY_RUN)
28
 
    ./scan_merge_props.py -F0d
 
36
    tools/scan_merge_props.py -F0d
29
37
    ;;
30
38
  *)
31
39
    echo "Unknown trigger option."
35
43
 
36
44
cp -fv $HOME/state/mp-* $WORKSPACE || true
37
45
 
38
 
# Echo regex for build description
 
46
# Echo build description regex pickup
39
47
if [[ -f $WORKSPACE/mp-state.changed ]]; then
40
48
  echo "_:mp-state.changed"
41
 
  cat ${WORKSPACE}/mp-state.changed
42
49
else
43
50
  echo "No changes detected."
44
51
fi
 
52
 
 
53
f_nice_finish
 
54
f_check_fail