build: Jenkinsfile 不声明 parameter

This commit is contained in:
BugKing 2021-01-05 17:25:24 +08:00
parent 2c2f8b8476
commit 6b6acf4ca7
1 changed files with 3 additions and 3 deletions

6
Jenkinsfile vendored
View File

@ -5,9 +5,9 @@ pipeline {
} }
} }
options { quietPeriod(600) } options { quietPeriod(600) }
parameters { environment {
string(name: 'IMAGE_NAME', defaultValue: 'metersphere', description: '构建后的 Docker 镜像名称') IMAGE_NAME = 'metersphere'
string(name: 'IMAGE_PREFIX', defaultValue: 'registry.cn-qingdao.aliyuncs.com/metersphere', description: '构建后的 Docker 镜像带仓库名的前缀') IMAGE_PREFIX = 'registry.cn-qingdao.aliyuncs.com/metersphere'
} }
stages { stages {
stage('Build/Test') { stage('Build/Test') {