码迷,mamicode.com
首页 > 其他好文 > 详细

常用 Jenkins 配置

时间:2020-02-14 18:42:04      阅读:194      评论:0      收藏:0      [点我收藏+]

标签:create   out   string   常用   space   blank   ps1   shell   +=   

General

  • Use custom workspace
    • Directory: d:\xxx\xxx

Source Code Management

Git plugin

  • Git
    • Repositories
    • Branches to build
      • Branch Specifier (blank for ‘any‘): 10.29
    • Additional Behaviours
      • Check out to specific local branch
        • Branch name: 10.29

Build Environment

Version Number Plug-In

  • Create a formatted version number
    • Environment Variable Name: BUILD_VERSION
    • Version Number Format String: 10.29.${BUILD_DATE_FORMATTED, "yyyyMMdd"}.${BUILDS_TODAY}
    • Inject environment variables to the build process: Checked

https://www.cnblogs.com/wdliu/p/8312735.html

NodeJS Plugin

  • Provide Node & npm bin/ folder to PATH
    • NodeJS Installation:
    • npmrc file:
    • Cache location:

Build

PowerShell plugin

  • PowerShell
    • Command
    $env:Path+=";C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin"
    .\build.ps1

Post-build Actions

Artifact Deployer Plug-in

  • Post-build Actions
    • [ArtifactDeployer] - Deploy the artifacts from build workspace to remote locations
      • Artifacts to deploy: **
      • Basedir: dist/ -
      • Remote File Location: f:/artifacts/${BUILD_VERSION}

常用 Jenkins 配置

标签:create   out   string   常用   space   blank   ps1   shell   +=   

原文地址:https://www.cnblogs.com/nehcdahc/p/12308107.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!