~aittner/charms/+source/scalebot-jenkins:update-controller-creds

Last commit made on 2020-06-05
Get this branch:
git clone -b update-controller-creds https://git.launchpad.net/~aittner/charms/+source/scalebot-jenkins
Only Alexandre Erwin Ittner can upload to this branch. If you are Alexandre Erwin Ittner please log in for upload directions.

Branch merges

Branch information

Name:
update-controller-creds
Repository:
lp:~aittner/charms/+source/scalebot-jenkins

Recent commits

7b0acc2... by Alexandre Erwin Ittner

Update existing controller credentials

If the juju controller already has the access credentials to the cloud,
update them instead of adding.

c0b6db4... by Alexandre Erwin Ittner

Reformat code with "black"

7c765f2... by Alexandre Erwin Ittner

Add pre-commit configuration fro pyflakes and black

2147b93... by Alexandre Erwin Ittner

Safely restart Jenkins process to reload environment variables

d100818... by Taihsiang Ho

Stop supporting xenial

The default git version from Xenial is 2.7 based, which does not support
the option core.sshCommand to fetch scalebot source. We did not support
Xenial until this feature is enhanced.

511b92e... by Patricia Domingues

fix install hook

scalebot is failing due to:
`subprocess.CalledProcessError:
 Command '['/bin/su', '-', 'jenkins', '-c', 'juju update-credential --client \
   -f /tmp/tmpmspqgfn4 scalebot']' returned non-zero exit status 1.
`
is asks for a add-credential instead of update-credential.

the reason when I've modified it in the past was because I was fixing an
existent deployment of scalebot

75704fe... by Patricia Domingues

fix it to work with juju 2.7.0

operation hook "install" fails because juju 2.7.0 allow to
adding clouds interactively

```In versions prior to v.2.6.1 the add-cloud command only operates locally
(there is no --local option).```

So we need this option to add a cloud and to update the cloud credential.

9694736... by dann frazier

README.devel: Update built charm path

charm-tools changed where it outputs built charms sometime ago.

1c51385... by dann frazier

Rename 'mkjobs' hook to 'refresh'

mkjobs implies what it does, not when it does it. There are other things
a user might want to do after refreshing a repo - e.g. installing new
dependencies. Make the naming more reflective of that.

3d79ac1... by dann frazier

Add a scalebot_production config

This simply sets an environment variable for tests to determine whether
they are in a production environment or not. What that means is really
up to an individual deployment. Our need, for example, is that we have
a "test" that just frees up nodes in the lab. We only want the production
environment doing that.