Skip to content
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

Not parsing ChoiceParameterDefinition correctly? #51

Open
ghost opened this issue Mar 2, 2017 · 4 comments
Open

Not parsing ChoiceParameterDefinition correctly? #51

ghost opened this issue Mar 2, 2017 · 4 comments

Comments

@ghost
Copy link

ghost commented Mar 2, 2017

We've got a few ChoiceParameterDefinition blocks in our source and jenkins-job-wrecker doesn't seem to be extracting the name field. This happens for all choice blocks in our project.

Input:

<hudson.model.ChoiceParameterDefinition>
  <name>MyChoice</name>
    <description>Select a choice</description>
      <choices class="java.util.Arrays$ArrayList">
          <a class="string-array">
            <string>Choice1</string>
            <string>Choice2</string>
            <string>Choice3</string>
            <string>Choice4</string>
          </a>
</choices>

Output:

    - choice:
        choices:
        - Choice1
        - Choice2
        - Choice3
        - Choice4
        description: []
        name: []

We're exporting from Jenkins ver. 2.26 with JJW installed via pip

Any ideas?

ktdreyer added a commit that referenced this issue Mar 13, 2017
@ktdreyer
Copy link
Owner

Hi Chris, thanks for the report. Mind testing with v1.4.1, which I've pushed today?

@ghost
Copy link
Author

ghost commented Mar 13, 2017

That worked. We're now seeing the Choice fields properly exported.
Aside - adding a -v option would be helpful.

@ktdreyer
Copy link
Owner

Thanks for testing.

What exact behavior would you like to see for -v?

@ghost
Copy link
Author

ghost commented Mar 13, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant