![](/img/trans.png)
[英]Add timestamp to war file generated from Node project to artifactory in Jenkins pipeline
[英]Jenkins pipeline to publish war generated in Node + Gulp project to Artifactory
我有一个gulp build
,它在build
目录中创建了一个war
文件。
是否有 Jenkins 管道将这个war
文件直接发布到 Artifactory。
请注意,我正在为 Jenkins 使用声明性管道
Jenkins 的JFrog Artifactory 插件支持声明式管道。
您可以使用 rtUpload 命令将文件上传到 Artyifactory
rtUpload (
serverId: 'Artifactory-1',
spec: '''{
"files": [
{
"pattern": "build/war/*.war",
"target": "my-repo/my-path/"
}
]
}''',
// Optional - Associate the uploaded files with the following custom build name and build number,
// as build artifacts.
// If not set, the files will be associated with the default build name and build number (i.e the
// the Jenkins job name and number).
buildName: 'my-build',
buildNumber: '42'
)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.