Hi Team, I have done a task correctly, Still validation failed… @mmumshad @Tej-Singh-Rana @inderpreetaps Can you please help me out, I am sharing my pipeline script below.
pipeline {
agent {
label ‘ststor01’
}
parameters {
string(name: 'BRANCH', defaultValue: 'master', description: 'parameter for branch')
}
stages {
stage('Deploy') {
steps {
script {
def branch = params.BRANCH
echo "Using ${branch}"
checkout scmGit(
branches: [[name: "*/${params.BRANCH}"]],
extensions: [],
userRemoteConfigs: [[credentialsId: 'git-pass', url: 'http://git.stratos.xfusioncorp.com/sarah/web_app.git']]
)
}
}
}
}
}