常用 Jenkins 配置

Posted nehcdahc

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了常用 Jenkins 配置相关的知识,希望对你有一定的参考价值。

General

  • Use custom workspace
    • Directory: d:xxxxxx

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 Studio2019CommunityMSBuildCurrentBin"
    .uild.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 配置的主要内容,如果未能解决你的问题,请参考以下文章

配置 VScode 编辑器 (前端篇)

常用 Jenkins 配置

[AndroidStudio]_[初级]_[配置自动完成的代码片段]

[AndroidStudio]_[初级]_[配置自动完成的代码片段]

[AndroidStudio]_[初级]_[配置自动完成的代码片段]

Jenkins——Jenkins项目构建细节(触发构建和)和SonarQube代码审查