Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Modified the Jenkins file to reuse current Virtual Machine

  • Loading branch information
mahmoud-adam85 committed Dec 10, 2018
1 parent 4c33683 commit 06b405c1473f22abf204c2cfae1d944842b2031c
Showing with 9 additions and 0 deletions.
  1. +9 −0 Jenkinsfile.publish
@@ -17,12 +17,14 @@ node('mac-vm-host') {
config.vm.define "publishios" do |publishios|
publishios.vm.hostname ="publishios"
config.ssh.private_key_path = "/Users/jenkins/publishiosmobile/.vagrant/machines/publishios/virtualbox/private_key"
publishios.vm.network "public_network", :bridge => "en0: Ethernet 1", auto_config: false
publishios.vm.boot_timeout = 900
publishios.vm.provider "virtualbox" do |v|
v.name = "publishios"
v.gui = false
v.memory = ENV["NODE_MEMORY"]
v.cpus = ENV["NODE_CPU_COUNT"]
end
publishios.vm.provision "shell", privileged: false, run: "always", inline: <<-SHELL#!/bin/bash -l
set -e
@@ -36,6 +38,13 @@ node('mac-vm-host') {
end
end
'''
sh '''#!/bin/bash -l
set -e
set -x
mkdir -p .vagrant/machines/publishios/virtualbox
cd .vagrant/machines/publishios/virtualbox/
if [ ! -f id ]; then touch id && echo "d2fc4bdc-ee6e-432d-8be4-25cad07672bd" >> id; fi
'''

vagrant.inside(
'Vagrantfile',

0 comments on commit 06b405c

Please sign in to comment.