常用 Jenkins 配置
2024-10-08 06:53:20
General
- Use custom workspace
- Directory: {directory, d:\github\}
Source Code Management
Git plugin
- Git
- Repositories
- Repository URL: {repository_url, https://github.com/nehcdahc/nehcdahc.github.io.git}
- Credentials: {credentials}
- Branches to build
- Branch Specifier (blank for 'any'): {branch_specifier, 10.29}
- Additional Behaviours
- Check out to specific local branch
- Branch name: {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: {branch_name, 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 Studio\2019\Community\MSBuild\Current\Bin"
{build_script, .\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: {artifacts_to_deploy, **}
- Basedir: {dist_directory, dist/}
- Remote File Location: {remote_file_location, f:/artifacts/${BUILD_VERSION}}
- [ArtifactDeployer] - Deploy the artifacts from build workspace to remote locations
最新文章
- hue install
- jQuery Length属性
- Sublime Text使用教程【转】
- 【MySQL】数据导出导入成CSV格式
- windows下查看所有进程以及pid
- PHP利用GD库画曲线
- sqltext sqlarea
- 自学Zabbix3.1-语言切换
- CSS高度塌陷问题与解决办法
- SpringCloud第六步:搭建分布式配置中心
- List转Json函数
- SQL Server ->;>; DAC(Dedicated Administrator Connection)专用管理员连接
- Codeforces Round #397 Div. 2 D. Artsem and Saunders
- jQuery的遍历
- 尚硅谷springboot学习13-配置的加载
- java过滤器、监听器、拦截器机制
- Unity 基础-------------------------关于Anchor锚点的理解
- IOS项目分层
- Java连接MySQL数据库——代码
- Python基础 整形、布尔值、if条件判断、while循环、运算符、格式化输出
热门文章
- 【转载】计算机程序的思维逻辑 (82) - 理解ThreadLocal
- gRPC in ASP.NET Core 3.x -- Protocol Buffer(2)Go语言的例子(下)
- python 类 --导入类
- PTA 7-10 树的遍历(二叉树基础、层序遍历、STL初体验之queue)
- ELK:收集Docker容器日志
- 【题解】P1908 逆序对——归并算法
- 如何查看SparkSQL 生成的抽象语法树?
- tomcat solr服务无法搜索中文
- [jQuery]jQuery和DOM对象互换(四)
- [jQuery]顶级对象$(二)