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

Fixed problem with indentation in multi-line content #911

Conversation

tkrzeminski
Copy link

@tkrzeminski tkrzeminski commented Sep 12, 2016

Fixed problem with indentation in multi-line content when used in additionalClasspath variable. It happens when value contains tabs or spaces. This results in error:

...
Processing DSL script job.groovy
ERROR: startup failed:
workspace:/jobs/job.groovy: n: unable to resolve class ...

Sample XML file:

<project>
    ...
    <builders>
       <javaposse.jobdsl.plugin.ExecuteDslScripts plugin="job-dsl@1.50">
            <targets>jobs/job.groovy</targets>
            <usingScriptText>false</usingScriptText>
            <ignoreExisting>false</ignoreExisting>
            <ignoreMissingFiles>false</ignoreMissingFiles>
            <removedJobAction>DELETE</removedJobAction>
            <removedViewAction>DELETE</removedViewAction>
            <lookupStrategy>JENKINS_ROOT</lookupStrategy>
            <additionalClasspath>src/main/resources
              src/main/groovy
              lib/*.jar</additionalClasspath>
        </javaposse.jobdsl.plugin.ExecuteDslScripts>
    ...
    </builders>
</project>

Job can be created with CLI command:

java -jar ./.cli/jenkins-cli.jar -s http://localhost:8080/ create-job job < job.xml

@tkrzeminski tkrzeminski force-pushed the bug/additional-classpath-with-indentation branch from 903aba2 to 0b0f71e Compare September 12, 2016 14:13
@daspilker daspilker merged commit 0b0f71e into jenkinsci:master Sep 13, 2016
@tkrzeminski tkrzeminski deleted the bug/additional-classpath-with-indentation branch November 26, 2016 21:15
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

Successfully merging this pull request may close these issues.

2 participants