~gz/juju-ci-tools/jes_no_upload

« back to all changes in this revision

Viewing changes to update-jenkins-branches.bash

  • Committer: Curtis Hovey
  • Date: 2015-07-31 21:05:22 UTC
  • mfrom: (1054.1.1 osx-groups)
  • Revision ID: curtis@canonical.com-20150731210522-bd1qvl4g0mbavmip
Don't set the group name in cloud-city becaue it is not consistent across all machines,

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/bash
2
 
# As a member of juju-qa,  Visit each the jenkins master and slaves
3
 
# and update their branches.
4
 
# passing 'true' as an arg will driect the script to try to update cloud-city.
 
2
# Update the required resources on the Jenkins master and slaves.
 
3
# the --cloud-city option will also update credential and configs.
5
4
set -eux
6
5
 
7
6
MASTER="juju-ci.vapour.ws"
36
35
    (cd ~/cloud-city; bzr revert; cd -)
37
36
    bzr pull -d ~/cloud-city ~/cloud-city.new
38
37
    rm -r ~/cloud-city.new
39
 
    sudo chown -R jenkins:jenkins ~/cloud-city
 
38
    sudo chown -R jenkins ~/cloud-city
40
39
    chmod -R go-w ~/cloud-city
41
40
    chmod 700 ~/cloud-city
42
41
    chmod 700 ~/cloud-city/gnupg