Hi,
I currently have my base endpoint URL stored in a profile (global variable). My Web Service objects are utilizing this and other vars. When running via Jenkins, I would like to be able to update the URL as needed by passing it via a parameter to override the profile variable.
Jenkins Pipeline Script
pipeline{
agent {
kubernetes {
label 'dev-dd'
}
}
stages {
stage('Run Tests') {
steps {
container('docker') {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'RelativeTargetDirectory']], submoduleCfg: [], userRemoteConfigs: [[credentialsId: '1111-1111-1111-1111-1111', url: 'https://github.com/Acme-Inc/Katalon-Automation']]])
sh 'docker run -t --rm -v "$(pwd)":/katalon/katalon/source katalonstudio/katalon katalon-execute.sh -browserType="Web Service" -executionProfile="profile_qa" -retry=0 -statusDelay=15 -testSuitePath="Test Suites/Regression/SmokeTest"'
}
}
}
}
post {
always {
archiveArtifacts artifacts: 'report/**/*.*', fingerprint: true
junit 'report/**/JUnit_Report.xml'
}
}
}