From d6587e5209a0783b741b8d9834b0340296ecfa84 Mon Sep 17 00:00:00 2001 From: Nicolas Arenas Date: Mon, 30 Sep 2024 19:29:58 +0200 Subject: [PATCH] Updated sync method for deployment --- tests/API-dhcp/Jenkinsfile | 6 ++++-- tests/API-dhcp/Vagrantfile | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/API-dhcp/Jenkinsfile b/tests/API-dhcp/Jenkinsfile index b027db1..3cef7d2 100644 --- a/tests/API-dhcp/Jenkinsfile +++ b/tests/API-dhcp/Jenkinsfile @@ -31,8 +31,10 @@ pipeline { } stage('Clean up') { steps { - echo "Destroy API server for DHCP with Vagrant" - sh 'vagrant destroy -f' + dir ('tests/API-dhcp') { + echo "Destroy API server for DHCP with Vagrant" + sh 'vagrant destroy -f' + } } } } diff --git a/tests/API-dhcp/Vagrantfile b/tests/API-dhcp/Vagrantfile index 9250a25..fdb2955 100644 --- a/tests/API-dhcp/Vagrantfile +++ b/tests/API-dhcp/Vagrantfile @@ -14,7 +14,7 @@ Vagrant.configure('2') do |config| # Use rsync and NFS synced folders. (or use the option to disable them) # https://www.vagrantup.com/docs/synced-folders/ #config.vm.synced_folder('.', '/vagrant', type: 'rsync') - config.vm.synced_folder('../../', '/vagrant', type: 'nfs', disabled: false) + config.vm.synced_folder('../../', '/vagrant', type: 'rsync')) # Vagrant can configure additional network interfaces using a static IP or # DHCP. Use public_network or private_network to manually set a static IP and