Commit 5de4aab7 authored by kmohiuddin's avatar kmohiuddin

add stage checking param

parent 2edf6343
......@@ -11,10 +11,23 @@ pipeline {
checkout scm
}
}
stage('checking params') {
steps{
script {
// On first build by user just load the parameters as they are not available of first run on new branches
if (env.BUILD_NUMBER.equals("1") && currentBuild.getBuildCauses('hudson.model.Cause$UserIdCause') != null) {
currentBuild.displayName = 'Parameter loading'
addBuildDescription('Please restart pipeline')
currentBuild.result = 'ABORTED'
error('Stopping initial manually triggered build as we only want to get the parameters')
}
}
}
}
stage('test') {
steps{
test("/home/kmohiuddin/.jenkins/workspace/performance_test/file.yaml")
}
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment