[JIRA] (JENKINS-57547) CWP 1.6 throws error if pom.xml is used for plugins and casc for configuration

19 views
Skip to first unread message

o.v.nenashev@gmail.com (JIRA)

unread,
May 19, 2019, 2:56:02 PM5/19/19
to jenkinsc...@googlegroups.com
Oleg Nenashev created an issue
 
Jenkins / Bug JENKINS-57547
CWP 1.6 throws error if pom.xml is used for plugins and casc for configuration
Issue Type: Bug Bug
Assignee: Oleg Nenashev
Components: custom-war-packager
Created: 2019-05-19 18:55
Priority: Minor Minor
Reporter: Oleg Nenashev
% make clean build run   
rm -rf tmp
java \
    -jar ../../custom-war-packager-cli/target/custom-war-packager-cli-1.4-SNAPSHOT-jar-with-dependencies.jar \
    -configPath packager-config.yml -version 256.0-test
Picked up _JAVA_OPTIONS: -Dhttp.proxyHost=proxy.mms-dresden.de -Dhttp.proxyPort=8080 -Dhttps.proxyHost=proxy.mms-dresden.de -Dhttps.proxyPort=8080
Exception in thread "main" java.io.IOException: CasC section is declared, but CasC plugin is not declared in the plugins list
	at io.jenkins.tools.warpackager.lib.impl.Builder.verifyConfig(Builder.java:66)
	at io.jenkins.tools.warpackager.lib.impl.Builder.build(Builder.java:73)
	at io.jenkins.tools.warpackager.cli.Main.main(Main.java:56)
make: *** [Makefile:15: tmp/output/target/jenkins-casc-demo-256.0-test.war] Error 1

 

I used the the effective pom from the jcasc plugin.

my test code can be found here https://github.com/Xaseron/custom-war-packager/tree/bugreport/demo/casc

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

o.v.nenashev@gmail.com (JIRA)

unread,
May 19, 2019, 2:59:01 PM5/19/19
to jenkinsc...@googlegroups.com
Oleg Nenashev updated an issue
Change By: Oleg Nenashev
It is a regression after [https://github.com/jenkinsci/custom-war-packager/commit/ce66be7b8a6236171ab8e7ffa900f4a15a603742] , because "jar" dependencies always take the "core" path now and lead to noop in all other cases

 
{code:java}

% make clean build run   
rm -rf tmp
java \
    -jar ../../custom-war-packager-cli/target/custom-war-packager-cli-1. 4 6 - SNAPSHOT- jar-with-dependencies.jar \

    -configPath packager-config.yml -version 256.0-test
Picked up _JAVA_OPTIONS: -Dhttp.proxyHost=proxy.mms-dresden.de -Dhttp.proxyPort=8080 -Dhttps.proxyHost=proxy.mms-dresden.de -Dhttps.proxyPort=8080
Exception in thread "main" java.io.IOException: CasC section is declared, but CasC plugin is not declared in the plugins list
at io.jenkins.tools.warpackager.lib.impl.Builder.verifyConfig(Builder.java:66)
at io.jenkins.tools.warpackager.lib.impl.Builder.build(Builder.java:73)
at io.jenkins.tools.warpackager.cli.Main.main(Main.java:56)
make: *** [Makefile:15: tmp/output/target/jenkins-casc-demo-256.0-test.war] Error 1

{code}

 

I used the the effective pom from the jcasc plugin.

o.v.nenashev@gmail.com (JIRA)

unread,
May 19, 2019, 2:59:02 PM5/19/19
to jenkinsc...@googlegroups.com

o.v.nenashev@gmail.com (JIRA)

unread,
May 19, 2019, 3:04:01 PM5/19/19
to jenkinsc...@googlegroups.com

o.v.nenashev@gmail.com (JIRA)

unread,
May 19, 2019, 3:04:02 PM5/19/19
to jenkinsc...@googlegroups.com

o.v.nenashev@gmail.com (JIRA)

unread,
May 19, 2019, 3:04:03 PM5/19/19
to jenkinsc...@googlegroups.com
Oleg Nenashev started work on Bug JENKINS-57547
 
Change By: Oleg Nenashev
Status: Open In Progress

o.v.nenashev@gmail.com (JIRA)

unread,
May 20, 2019, 6:00:01 PM5/20/19
to jenkinsc...@googlegroups.com

bmathus+ossjira@cloudbees.com (JIRA)

unread,
May 21, 2019, 4:24:02 AM5/21/19
to jenkinsc...@googlegroups.com

o.v.nenashev@gmail.com (JIRA)

unread,
Jun 10, 2019, 5:29:02 AM6/10/19
to jenkinsc...@googlegroups.com

o.v.nenashev@gmail.com (JIRA)

unread,
Jun 14, 2019, 9:03:02 AM6/14/19
to jenkinsc...@googlegroups.com

o.v.nenashev@gmail.com (JIRA)

unread,
Aug 11, 2019, 5:41:02 PM8/11/19
to jenkinsc...@googlegroups.com
Change By: Oleg Nenashev
Status: In Review Resolved
Resolution: Fixed
Released As: Custom WAR Packager 1.7
Reply all
Reply to author
Forward
0 new messages