原创

CICD

温馨提示:
本文最后更新于 2026年04月14日,已超过 61 天没有更新。若文章内的图片失效(无法正常加载),请留言反馈或直接联系我

安装

创建文件夹

mkdir -p /mydata/jenkins

授权

chmod 777 /mydata/jenkins/

docker启动

docker run -itd -p 8081:8080 -p 10241:50000 --name jenkins --privileged=true  -v /mydata/jenkins:/var/jenkins_home --restart=always jenkins/jenkins:latest

jenkins 持续集成

可以使用直接admin账户

create table cicd_controller
(
    id                                int auto_increment comment '序号'
        primary key,
    jar_name                          varchar(100) default 'services-mybatisPlus_high_concurrency_scenarios-3.5.5.jar' not null comment 'jar包名字',
    remote_repository_current_version int                                                                              null comment '远程仓库版本',
    cicd_name                         varchar(100)                                                                     null comment 'cicd名字',
    svn_file_adress                   varchar(100)                                                                     null comment 'svn拉取地址',
    local_file_path                   varchar(100)                                                                     null comment '本地拉取文件存储路径',
    update_interval                   int                                                                              null comment '更新间隔 ',
    create_time                       timestamp                                                                        null comment '创建时间',
    update_time                       timestamp                                                                        null comment '更新时间',
    svn_info                          varchar(1000)                                                                    null comment 'svn信息',
    svn_current_version               int                                                                              null comment 'svn当前版本',
    svn_look_time                     timestamp                                                                        null comment 'svn查询时间',
    start_cicd                        int                                                                              null comment '开启cicd'
)
    comment 'CICD控制' charset = utf8mb4;

后端使用 magic-api  时,路径需要是存在的

magic-api:
  #配置web页面入口
  web: /magic/web
  resource:
    location: /root
正文到此结束