简体   繁体   English

Jenkins 管道将 Node + Gulp 项目中生成的战争发布到 Artifactory

[英]Jenkins pipeline to publish war generated in Node + Gulp project to Artifactory

I have a gulp build which creates a war file in build directory.我有一个gulp build ,它在build目录中创建了一个war文件。

Is there a Jenkins pipeline to publish this war file directly to Artifactory.是否有 Jenkins 管道将这个war文件直接发布到 Artifactory。

Note that I am using a declarative pipeline for Jenkins请注意,我正在为 Jenkins 使用声明性管道

The JFrog Artifactory plugin for Jenkins has support for declarative pipelines . Jenkins 的JFrog Artifactory 插件支持声明式管道
You can use the rtUpload command for uploading files to Artyifactory您可以使用 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.

相关问题 将时间戳添加到从 Node 项目生成的 war 文件到 Jenkins 管道中的工件 - Add timestamp to war file generated from Node project to artifactory in Jenkins pipeline 使用Jenkins和maven将WAR文件发布到Artifactory - Using Jenkins and maven to publish a WAR file to Artifactory JFrog Artifactory的Jenkins管道无法发布BuildInfo - Jenkins pipeline for JFrog Artifactory fails to publish BuildInfo 使用声明式管道将项目 Jar 作为 maven 工件发布到 Jfrog Artifactory - Publish project Jar as maven artifacts to Jfrog Artifactory using Declarative Pipeline Jenkins与Docker和Artifactory的管道 - Jenkins pipeline with Docker and Artifactory 使用 Artifactory 插件“包含模式”从 Jenkins 发布项目文件 - Publish project files from Jenkins using Artifactory plugin "Include Patterns" 发布到Artifactory,从Jenkins的另一个项目工件复制 - Publish to Artifactory copied from another project artifacts in Jenkins 使用Artifactory Gradle插件在Jenkins Pipeline中设置项目版本 - Set project version in Jenkins Pipeline with the Artifactory Gradle plugin Jenkins Pipeline 通过 cifs 发布,pyinstaller 生成的文件不复制 - Jenkins Pipeline publish over cifs with pyinstaller generated file not copying over 从Jenkins Pipeline发布到Artifactory - publishing to Artifactory from Jenkins Pipeline
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM