Improve plugin installation
testing/og-dhcp-API/pipeline/head There was a failure building this commit
Details
testing/og-dhcp-API/pipeline/head There was a failure building this commit
Details
parent
231cbe92d8
commit
35c44c163f
|
@ -18,7 +18,14 @@ pipeline {
|
||||||
steps {
|
steps {
|
||||||
dir ('tests/API-dhcp') {
|
dir ('tests/API-dhcp') {
|
||||||
echo "Install vagrant plugin"
|
echo "Install vagrant plugin"
|
||||||
sh 'vagrant plugin install vagrant-vmware-esxi'
|
sh '''
|
||||||
|
if ! vagrant plugin list | grep -q vagrant-vmware-esxi; then
|
||||||
|
echo "Vagrant plugin vagrant-vmware-esxi not found. Installing..."
|
||||||
|
vagrant plugin install vagrant-vmware-esxi
|
||||||
|
else
|
||||||
|
echo "Vagrant plugin vagrant-vmware-esxi is already installed."
|
||||||
|
fi
|
||||||
|
'''
|
||||||
echo "Deploy API server for DHCP with Vagrant"
|
echo "Deploy API server for DHCP with Vagrant"
|
||||||
sh 'vagrant up --provider=vmware_esxi --provision'
|
sh 'vagrant up --provider=vmware_esxi --provision'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue