Details
-
Type:
Bug
-
Status: Resolved (View Workflow)
-
Priority:
Minor
-
Resolution: Fixed
-
Component/s: custom-war-packager
-
Labels:
-
Similar Issues:
-
Epic Link:
-
Released As:Custom WAR Packager 1.7
Description
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
% make clean build run
rm -rf tmp
java \
-jar ../../custom-war-packager-cli/target/custom-war-packager-cli-1.6-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
Attachments
Issue Links
- is related to
-
JENKINS-54340 CWP throws error if pom.xml is used for plugins and casc for configuration
-
- Resolved
-
- links to
Activity
Field | Original Value | New Value |
---|---|---|
Epic Link |
|
Link |
This issue is related to |
Description |
{code:java} % 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 {code} 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 |
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.6-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. my test code can be found here [https://github.com/Xaseron/custom-war-packager/tree/bugreport/demo/casc] |
Labels | regression |
Status | Open [ 1 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | In Review [ 10005 ] |
Remote Link | This issue links to "https://github.com/jenkinsci/custom-war-packager/pull/99 (Web Link)" [ 23003 ] |
Labels | regression | jcasc-compatibility regression |
Labels | jcasc-compatibility regression | jcasc-compatibility regression triaged |
Released As | Custom WAR Packager 1.7 | |
Resolution | Fixed [ 1 ] | |
Status | In Review [ 10005 ] | Resolved [ 5 ] |
https://github.com/jenkinsci/custom-war-packager/pull/99