jenkins: set container hostname to jenkins (#60551)

This commit is contained in:
Emmanuel Cazenave 2022-01-11 18:33:33 +01:00
parent 5646fb8cf5
commit 3424c598f6
1 changed files with 1 additions and 0 deletions

View File

@ -21,6 +21,7 @@ then
apt-key add entrouvert.gpg
apt update
/etc/init.d/postgresql start
hostname jenkins
PORT=`pg_lsclusters | tail -n1 | awk '{ print $3 }'`
echo 'cd /opt/publik-devinst; ansible-playbook -i inventory.yml -e "{postgresql_port: '$PORT'}" install.yml'
su testuser -l -c 'cd /opt/publik-devinst; ansible-playbook -i inventory.yml -e "{postgresql_port: '$PORT'}" install.yml'