Christian Grabowski has proposed merging
~cgrabowski/maas-ci/+git/maas-ci-config:fix_ansible_collections_permissions_issue
into ~maas-committers/maas-ci/+git/maas-ci-config:master.
Commit message:
fix file permissions in ansible collections
Requested reviews:
MAAS Committers (maas-committers)
For more details, see:
https://code.launchpad.net/~cgrabowski/maas-ci/+git/maas-ci-config/+merge/442699
--
Your team MAAS Committers is requested to review the proposed merge of
~cgrabowski/maas-ci/+git/maas-ci-config:fix_ansible_collections_permissions_issue
into ~maas-committers/maas-ci/+git/maas-ci-config:master.
diff --git a/jenkins/jobs/ansible_collection.groovy b/jenkins/jobs/ansible_collection.groovy
index be73dc5..a54af91 100644
--- a/jenkins/jobs/ansible_collection.groovy
+++ b/jenkins/jobs/ansible_collection.groovy
@@ -76,7 +76,7 @@ pipeline {
stage('Install Dependencies') {
steps{
sh '''
- sudo -E -u ubuntu pip install git+https://github.com/maas/python-libmaas.git
+ HOME=/home/ubuntu sudo -E -u ubuntu pip install git+https://github.com/maas/python-libmaas.git
'''
}
}
@@ -139,6 +139,8 @@ pipeline {
export noproxy="${noproxy:-'localhost'},${MAAS_HOST}"
export NOPROXY="${NOPROXY:-'localhost'},${MAAS_HOST}"
cd /opt/ansible_collections/maas/maas
+ mkdir .tox
+ chown -R ubuntu:ubuntu .
sudo -E -H -u ubuntu tox -e integration
'''
}
@@ -149,6 +151,8 @@ pipeline {
export noproxy="${noproxy:-'localhost'},${MAAS_HOST}"
export NOPROXY="${NOPROXY:-'localhost'},${MAAS_HOST}"
cd /opt/ansible_collections/maas/maas
+ mkdir .tox
+ chown -R ubuntu:ubuntu .
sudo -E -H -u ubuntu tox -e integration
'''
{% endif %}
--
Mailing list: https://launchpad.net/~sts-sponsors
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sts-sponsors
More help : https://help.launchpad.net/ListHelp