Cimpress-MCP / vagrant-orchestrate

Cross platform deployment orchestration to existing managed servers using vagrant provisioners
Other
19 stars 13 forks source link

Load servers for branch does not work with Jenkins #40

Open chrisbaldauf opened 9 years ago

chrisbaldauf commented 9 years ago

When trying to execute vagrant orchestrate push in the context of a Jenkins job using the servers.json environment configuration file, the deployment fails with

There are errors in the configuration of this machine. Please fix
the following errors and try again:

vm:
* A box must be specified.

ManagedServers Provider:
* The IP or hostname of the server must be configured via "server"

Upon further investigation, the root cause appears to be that the GIT_BRANCH environment variable set by the git plugin contains a value of the form origin/dev. This can be fixed by splitting on "/" and taking the last element.

@pkehrer