Skip to content
This repository was archived by the owner on Mar 8, 2018. It is now read-only.
This repository was archived by the owner on Mar 8, 2018. It is now read-only.

Vagrant file is not checked properly on build slave #37

@pnuz3n

Description

@pnuz3n

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions