Jenkins multibranch can't add parameters, this options can't click:
This page is project's develop branch.
Jenkins multibranch can't add parameters, this options can't click:
This page is project's develop branch.
In Jenkins multibranche pipeline you can use parameters tag.
For example:
pipeline {
agent any
tools {
jdk 'Java11 AdoptOpenJDK'
}
parameters {
string(defaultValue: "dev", description: 'set env example: dev,uat', name: 'env')
}
stages {
stage('Testing') {
steps {
sh './mvnw -Denv=${env} test'
}
}
}