Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-25932

"Provider" argument doesn't work when booting up Vagrant VM

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • vagrant-plugin
    • None
    • Jenkins ver. 1.592, vagrant plugin 1.0.1

      How to Reproduce

      1. Create a freestyle project.
      2. Add a repo that contains a Vagrantfile.
      3. Add "Boot up Vagrant VM" build step.
      4. Fill in the "Provider" textfield with a provider name.
      5. Save and build.

      Console Output

      Vagrant 1.6.5
      [ vagrant ]: Executing command :[vagrant, up, linode] in folder /var/lib/jenkins/jobs/sample-web-app/workspace
      [workspace] $ vagrant up linode
      The machine with the name 'linode' was not found configured for
      this Vagrant environment.
      Build step 'Boot up Vagrant VM' marked build as failure
      Finished: FAILURE
      

          [JENKINS-25932] "Provider" argument doesn't work when booting up Vagrant VM

          Thomas Helms added a comment -

          Just wanted to add a possible workaround for anybody else that hits this issue.

          Having a step for a batch/shell command to set the VAGRANT_DEFAULT_PROVIDER key to your preferred provider before you run the Vagrant steps and not specifying a provider will allow vagrant to succeed.

          Thomas Helms added a comment - Just wanted to add a possible workaround for anybody else that hits this issue. Having a step for a batch/shell command to set the VAGRANT_DEFAULT_PROVIDER key to your preferred provider before you run the Vagrant steps and not specifying a provider will allow vagrant to succeed.

          Hi Thomas,

          Can you please elaborate on your solution as to what needs to be set and where to set it.

          I am facing the same kindly of problem when trying to deploy VM using vagrant on jenkins.

          Please let me know the steps that needs to be performed.

          I am using jenkins latest version with vagrant-plugin installed.

          Regards,
          Sathya.R

          sathya narayanan added a comment - Hi Thomas, Can you please elaborate on your solution as to what needs to be set and where to set it. I am facing the same kindly of problem when trying to deploy VM using vagrant on jenkins. Please let me know the steps that needs to be performed. I am using jenkins latest version with vagrant-plugin installed. Regards, Sathya.R

          Hi Thomas,

          Can you please elaborate on your solution as to what needs to be set and where to set it.

          I am facing the same kindly of problem when trying to deploy VM using vagrant on jenkins.

          Please let me know the steps that needs to be performed.

          I am using jenkins latest version with vagrant-plugin installed.

          Regards,
          Sathya.R

          sathya narayanan added a comment - Hi Thomas, Can you please elaborate on your solution as to what needs to be set and where to set it. I am facing the same kindly of problem when trying to deploy VM using vagrant on jenkins. Please let me know the steps that needs to be performed. I am using jenkins latest version with vagrant-plugin installed. Regards, Sathya.R

          kenorb added a comment -

          I'm using aws provider, I set Vagrant VM name to ${VM_NAME} where I've the name of my VM which I want to create.

          But it's saying that this machine was not found configured for this Vagrant environment. And build step 'Boot up Vagrant VM' marked build as failure

          kenorb added a comment - I'm using aws provider, I set Vagrant VM name to ${VM_NAME} where I've the name of my VM which I want to create. But it's saying that this machine was not found configured for this Vagrant environment. And build step 'Boot up Vagrant VM' marked build as failure

          kenorb added a comment - - edited

          Posted bounty of $50.

          kenorb added a comment - - edited Posted bounty of $50.

            hasyimi Hasyimi Bahrudin
            hasyimi Hasyimi Bahrudin
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: