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

RVM plugin manipulations via script console

    Details

    • Type: Task
    • Status: Resolved (View Workflow)
    • Priority: Trivial
    • Resolution: Not A Defect
    • Component/s: rvm-plugin
    • Labels:
      None
    • Similar Issues:

      Description

      I want to be able to create jobs via script console and enable RVM environment for them. Actually don't know how to implement it.Tried to find from jenkins sources but no luck.
      I'm creating job with this command:
      job = Jenkins.getInstance().createProject(FreeStyleProject.class, "test123")
      The next i found from jenkins sources should be something like :
      job.getBuildWrappersList().add(wrapper)
      And here is the problem. How should i initialize wrapper correctly for RVM plugin?
      In tests i saw this "TestBuildWrapper wrapper = new TestBuildWrapper();".But what's a real implementation on this?
      Please clarify this aspect.

        Attachments

          Activity

          Hide
          danielbeck Daniel Beck added a comment -

          Jira is not a support site. Ask on the jenkinsci-users (or even jenkinsci-dev) mailing list, or in #jenkins on Freenode.

          Show
          danielbeck Daniel Beck added a comment - Jira is not a support site. Ask on the jenkinsci-users (or even jenkinsci-dev) mailing list, or in #jenkins on Freenode.

            People

            • Assignee:
              Unassigned
              Reporter:
              sanicheev Serghei Anicheev
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: