rtyler / vagrant-plugin

An experimental Vagrant plugin for Jenkins
https://wiki.jenkins-ci.org/display/JENKINS/Vagrant+Plugin
103 stars 44 forks source link

Vagrant file is not checked properly on build slave #37

Open pnuz3n opened 10 years ago

pnuz3n commented 10 years ago

When using vagrant plugin and running job in jenkins slave, following error is reported:

There is no Vagrantfile in your workspace!
We looked in: /var/lib/jenkins/workspace/korppi-openuniv-studyright-service-vagrant-2
Recording test results
No test report files were found. Configuration error?
Finished: NOT_BUILT

However slave contains Vagrantfile in the given location.

It seems that the check is performed in the code is not properly using slaves resources:

unless FilePath.exists? FilePath.join(path, 'Vagrantfile')
    listener.info("There is no Vagrantfile in your workspace!")
    listener.info("We looked in: #{path}")
    build.native.setResult(Java.hudson.model.Result::NOT_BUILT)
    build.halt
end
rtyler commented 10 years ago

@pnuz3n The problem is that the Ruby plugin code for Jenkins only executes on the Jenkins master. As of right now there is no means of executing Vagrant on a slave :(

pnuz3n commented 10 years ago

Good to know. We have to find alternative solution then.