I am very new to Jenkins and scripting in the pipeline format. I have got my script working and running with TestComplete but the only task I have not managed to get working is Jenkins reporting back in the build description the .exe version run.
The .exe version in the specific folder is always the most recent build so I am trying to target that .exe. I should point out that I can dig into the TestComplete output to see the version tested, but I would be nice to see it on the job dashboard.
Below is a stripped down version if anyone could give some advice
pipeline {
agent {
label 'TestComplete_Runner'
}
options {
// Only keep the last 1 build
buildDiscarder(logRotator(numToKeepStr:'1'))
}
stages {
stage('Core_Run') {
steps {
script {
def fileVersion = readProperties file:'D:/file/file/file/file.exe'
echo "${fileVersion}"
}
// send build started notifications
//slackSend (color: '#FFFF00', message: "STARTED: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]' (${env.BUILD_URL})")
}
}
}
}