常用 Jenkins 配置
Posted nehcdahc
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了常用 Jenkins 配置相关的知识,希望对你有一定的参考价值。
General
- Use custom workspace
- Directory: d:xxxxxx
Source Code Management
Git plugin
- Git
- Repositories
- Repository URL: https://xxxx/xxxx.git
- Credentials: ...
- Branches to build
- Branch Specifier (blank for ‘any‘): 10.29
- Additional Behaviours
- Check out to specific local branch
- Branch name: 10.29
- Check out to specific local branch
- Repositories
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
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}
- [ArtifactDeployer] - Deploy the artifacts from build workspace to remote locations
以上是关于常用 Jenkins 配置的主要内容,如果未能解决你的问题,请参考以下文章
[AndroidStudio]_[初级]_[配置自动完成的代码片段]
[AndroidStudio]_[初级]_[配置自动完成的代码片段]