New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When upload job's definition them project always is filled with the current project #2715

Closed
giovanimarin opened this Issue Aug 25, 2017 · 0 comments

Comments

Projects
None yet
2 participants
@giovanimarin

giovanimarin commented Aug 25, 2017

Issue type: Bug report/Enhancement Request

My Rundeck detail

  • Rundeck version: 2.9.2-1
  • install type: (rpm,deb,war,launcher?) deb
  • OS Name/version: Linux red hat 2.6.32-504.el6.x86_64
  • DB Type/version: mysql? postgres? h2?..

Expected Behavior
When upload definition is with de follow structure:

    <jobref group='WebSphere' name='Node Stop' nodeStep='true'>
      <arg line='-profile "dccNode" -hostname ${node.hostname}' />
    </jobref>
    <project>CORE</project>
  </command>

jobref filled the project "CORE"

Actual Behavior
When upload definition with de follow structure:

    <jobref group='WebSphere' name='Node Stop' nodeStep='true'>
      <arg line='-wasSufix "85" -profile "dccNode" -hostname ${node.hostname}' />
    </jobref>
    <project>CORE</project>
  </command>

the tag is ignore and jobref always is filled with the current project

How to reproduce Behavior

  • Create project A
  • Create a generic jobA1 in project A
  • Create project B
  • Create jobB1, references jobA1 into jobB1
  • Export jobB1's definition
  • Import definition and create jobB2

The jobref's project is the current project (project B) and should be project A

@giovanimarin giovanimarin changed the title from When upload definition job`s project fill wrong to When upload definition job`s project fills in wrong Aug 25, 2017

@giovanimarin giovanimarin changed the title from When upload definition job`s project fills in wrong to When upload job`s definition them project always is filled with the current project Aug 25, 2017

@gschueler gschueler added the bug label Aug 25, 2017

@gschueler gschueler added this to the 2.9.3 milestone Aug 25, 2017

@gschueler gschueler changed the title from When upload job`s definition them project always is filled with the current project to When upload job's definition them project always is filled with the current project Aug 25, 2017

@gschueler gschueler closed this in 17a4ed3 Aug 25, 2017

gschueler added a commit that referenced this issue Aug 25, 2017

Merge pull request #2716 from rundeck/issue/2715
fix #2715 jobref in other project xml import error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment