君玉自牧 君玉自牧
首页
  • Linux
  • Nginx
  • MySQL
  • Redis
  • Kafka
  • Docker
  • Jenkins
  • Oneindex
  • Bitwarden
  • Confluence
  • Photogallery
  • 智能手机
  • 上古卷轴
  • 健身记录
  • 站点相关
  • 未完待续
GitHub (opens new window)
首页
  • Linux
  • Nginx
  • MySQL
  • Redis
  • Kafka
  • Docker
  • Jenkins
  • Oneindex
  • Bitwarden
  • Confluence
  • Photogallery
  • 智能手机
  • 上古卷轴
  • 健身记录
  • 站点相关
  • 未完待续
GitHub (opens new window)
  • 技术架构

  • 桌面维护

  • 网络工程

  • 系统运维

  • 环境搭建

  • 容器编排

  • 持续集成

    • Nexus Repository 制品库
    • Gitlab 部署 & 服务配置
    • Jenkins 部署 & 服务配置
    • Sonarqube 部署 & 服务配置
    • 用 Jenkins 构建 .NET 项目
      • 新增节点
        • 配置节点
        • 启动节点
      • 构建环境
    • 用 Jenkins 构建 VUE 项目
    • 用 Jenkins 构建 Java 项目
  • 监控告警

  • 项目实践

  • 脚本开发

  • 前端开发

  • 后端开发

  • 效率工具

目录

用 Jenkins 构建 .NET 项目

# 新增节点

Linux 只能编译 .NET Core 项目(Mono 的 xbilud 提示版本过期),所以需要安装一个 Widnws 的 Jenkins 节点
image.png image.png image.png

# 配置节点

image.png

标签是用来绑定 Job 的,所以一定要填
image.png
image.png

# 启动节点

image.png image.png

报错:Building on the controller node can be a security issue. You should set the number of executors on the controller to 0. See the documentation

# 构建环境

新建一个自由项目,指定项目运行在从节点
image.png

让后在子节点安装 GIt、Microsoft Build Tools Microsoft Build Tools 2015 (opens new window) https://visualstudio.microsoft.com/zh-hans/visual-cpp-build-tools/ (opens new window)
image.png image.png

https://www.microsoft.com/zh-CN/download/details.aspx?id=42334 (opens new window)

下载 clearcompressionflag 和 Windows8.1-KB2919355-x64,然后依次运行,否则有如下提示: image.png

补丁打好以后,重启电脑,然后安装 Visual Studio

网页编辑 (opens new window)
最近提交: 2023/03/22, 11:52:35
Sonarqube 部署 & 服务配置
用 Jenkins 构建 VUE 项目

← Sonarqube 部署 & 服务配置 用 Jenkins 构建 VUE 项目→

Theme by Vdoing | Copyright © 2011-2023 | 君玉自牧
粤ICP备15057965号
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式