~gnuoy/ubuntu-openstack-ci/model-config

« back to all changes in this revision

Viewing changes to job-parts/osci_mojo_common.sh

Add secgroup cleanup and restrict sudo privileges

Adjust for limited sudo privileges for the jenkins user

Add post-destroy info dump

Remove shim for hashsum mismatch issue in Juju 1.25.6

Bail earlier if mojo operations fail

Update jenkins sudoers

Fixes and workarounds for:
 - https://bugs.launchpad.net/charm-test-infra/+bug/1647000
 - https://github.com/juju/charmstore-client/issues/104
 - https://github.com/juju/docs/issues/1555
 - https://bugs.launchpad.net/bugs/1541482
 - https://bugs.launchpad.net/bugs/1647000
 - https://bugs.launchpad.net/bugs/1646909
 - https://bugs.launchpad.net/bugs/1333162
 - https://bugs.launchpad.net/bugs/1625624
 - https://bugs.launchpad.net/bugs/1570216

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
function f_mojo_broom() {
6
6
  if [[ -d "/srv/mojo/mojo-openstack-specs/" ]]; then
7
7
    echo " - Purging /srv/mojo/mojo-openstack-specs ..."
8
 
    sudo rm -rf /srv/mojo/mojo-openstack-specs
 
8
    rm -rfv /srv/mojo/mojo-openstack-specs/*
9
9
  fi
10
10
}
11
11
 
23
23
    if [[ "${PIPESTATUS[0]}" != "0" ]]; then
24
24
      echo " ! Failed to create new mojo project."
25
25
      touch $WORKSPACE/fyi-${test:0:4}.${test}-mojo-project-new.failed
 
26
      exit 1
26
27
    fi
27
28
    set +x
28
29
  fi
53
54
    if [[ "${PIPESTATUS[0]}" != "0" ]]; then
54
55
      echo " ! Failed to create new mojo workspace."
55
56
      touch $WORKSPACE/fyi-${test:0:4}.${test}-mojo-workspace-new.failed
 
57
      exit 1
56
58
    fi
57
59
    set +x
58
60
  fi