[
https://issues.jenkins-ci.org/browse/JENKINS-13167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=160526#comment-160526
]
SCM/JIRA link daemon commented on JENKINS-13167:
------------------------------------------------
Code changed in jenkins
User: Gregory Boissinot
Path:
pom.xml
src/main/java/org/jenkinsci/plugins/envinject/EnvInjectListener.java
http://jenkins-ci.org/commit/envinject-plugin/bd3910e8513e6ebc8eadd13a3ff38463b5057637
Log:
Fix JENKINS-13167
> Cannot use EnvInject in a Maven 2 Jenkins project
> -------------------------------------------------
>
> Key: JENKINS-13167
> URL: https://issues.jenkins-ci.org/browse/JENKINS-13167
> Project: Jenkins
> Issue Type: Bug
> Components: envinject
> Affects Versions: current
> Environment: OS: Windows 7 Enterprise x64
> Jenkins: v1.443
> EnvInject plugin: v1.38
> Maven 2 Project plugin: v1.443
> Reporter: Brett Sabell
> Assignee: gbois
> Priority: Minor
> Labels: envinronment-variables, exception, jenkins, maven,
> plugin, windows
>
> Our Maven 2 build job in Jenkins was created using the "maven2/3 project"
> template provided by the Maven 2 Project plugin. After installing the
> EnvInject plugin & configuring the "Prepare an environment for the run"
> settings at the job level, the job fails every time with the following error;
> [EnvInject] - [ERROR] - SEVERE ERROR occurs: hudson.maven.MavenModuleSet
> cannot be cast to hudson.model.Project
> Does EnvInject assume that the job is an instance of hudson.model.Project,
> which is a class? Is there a common interface that MavenModuleSet & Project
> both implement which could be used instead? Or a common ancestor super-class,
> e.g. hudson.model.AbstractProject?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira