跳至主要內容
jenkins部署

jenkins部署

使用docker-compose部署jenkins

1.安装docker并配置docker-compose 查看使用方式

2.创建jenkins目录

mkdir -p /data/env/jenkins/data

brinishness...小于 1 分钟JenkinsDockerdockerjenkinsdocker-compose
jenkins推送mexus

jenkins推送mexus

1.配置参数化构建

配置参数化构建

2.拉取代码

git branch: 'master', credentialsId: 'XXXXXXXXXXXXXXXXXXXXXXXXX', url: 'http://xxxx.xxxx.xxxx/xxx/demo.git'

brinishness...大约 1 分钟Jenkinsjenkinspluginspublishnexus
jenkins推送verdaccio

jenkins推送verdaccio

1.拉取代码

git branch: 'master', credentialsId: 'XXXXXXXXXXXXXXXXXXXXXXXXX', url: 'http://xxxx.xxxx.xxxx/xxx/demo.git'

brinishness...小于 1 分钟Jenkinsjenkinspublishverdaccio
jenkins推送harbor

jenkins推送harbor

1.拉取代码

git branch: 'master', credentialsId: 'XXXXXXXXXXXXXXXXXXXXXXXXX', url: 'http://xxxx.xxxx.xxxx/xxx/demo.git'

brinishness...小于 1 分钟Jenkinsjenkinspublishharbor