Vagrant file is not checked properly on build slave #35

Open
opened 2018-10-29 16:49:34 +00:00 by rtyler · 2 comments
Owner

Author: @pnuz3n Posted at: 04.03.2014 10:11

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
Author: @pnuz3n Posted at: 04.03.2014 10:11 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](https://github.com/rtyler/vagrant-plugin/blob/9eba9cbfadbf4f62ea220bc9395b11bff2d4f230/models/vagrant_wrapper.rb#L57) 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 ```
Author
Owner

Author: @rtyler Posted at: 13.03.2014 02:29

@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 :(

Author: @rtyler Posted at: 13.03.2014 02:29 @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 :(
Author
Owner

Author: @pnuz3n Posted at: 19.03.2014 10:37

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

Author: @pnuz3n Posted at: 19.03.2014 10:37 Good to know. We have to find alternative solution then.
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: rtyler/m2release-plugin#35
No description provided.