jenkins - m2 release plugin couldn't recognize assembly file with parameterized name -
in pom.xml file, using assembly plug in. want build assemble things based on assembly file, name parametrized. build works fine. however, if use m2 release plug in using perform release action in jenkins, release plugin not substitute value $env , pick assembly.xml file. following exception.
caused by: org.apache.maven.plugin.assembly.io.assemblyreadexception: error locating assembly descriptor: src/main/assembly/${env}.xml
i have attached log , pom file.
pom file build portion:
<plugin> <artifactid>maven-assembly-plugin</artifactid> <version>2.4</version> <executions> <execution> <id>jar-with-dependencies</id> <phase>package</phase> <goals> <goal>single</goal> </goals> <configuration> <descriptorrefs> <descriptorref>jar-with-dependencies</descriptorref> </descriptorrefs> <appendassemblyid>false</appendassemblyid> </configuration> </execution> <execution> <id>dist</id> <phase>package</phase> <goals> <goal>single</goal> </goals> <configuraenter code heretion> <descriptors> <descriptor>src/main/assembly/${env}.xml</descriptor> </descriptors> </configuration> </execution> </executions> </plugin> <plugin>
Comments
Post a Comment