获取Jenkins Pipeline中输出filenamapping的名称
我正在构建一个Maven项目,该项目使用装配插件在Jenkins管道中包装。在package.xml中,我将outputFilenAmapping设置为:
<dependencySet>
...
<outputFileNameMapping>${artifact.artifactId}-${artifact.version}.${artifact.extension} </outputFileNameMapping>
...
</dependencySet>
因此,最终文件是诸如myProject-34.0-snapshot-bin.tar.gz的名称,
构建后,我想将文件上传到文件服务器。是否有一个变量包含整个文件名?
I'm building a maven project which is using the assembly plugin for packaging in a jenkins pipeline. Within package.xml I've set the outputFileNameMapping to:
<dependencySet>
...
<outputFileNameMapping>${artifact.artifactId}-${artifact.version}.${artifact.extension} </outputFileNameMapping>
...
</dependencySet>
so the final file is name like myproject-34.0-SNAPSHOT-bin.tar.gz
After the build I want to upload the file to a fileserver. Is there a variable which contains the whole filename after the build?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论