簡體   English   中英

Jenkins 管道將 Node + Gulp 項目中生成的戰爭發布到 Artifactory

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM