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) }
parameters {
string(name: 'IMAGE_NAME', defaultValue: 'metersphere', description: '构建后的 Docker 镜像名称')
string(name: 'IMAGE_PREFIX', defaultValue: 'registry.cn-qingdao.aliyuncs.com/metersphere', description: '构建后的 Docker 镜像带仓库名的前缀')
environment {
IMAGE_NAME = 'metersphere'
IMAGE_PREFIX = 'registry.cn-qingdao.aliyuncs.com/metersphere'
}
stages {
stage('Build/Test') {