Hi,
I have developed my own step named "runMATLABCommand" which runs MATLAB
commands in the pipeline. when i use this step with options block with 6
minutes pause as shown below.my step does not seem to have any effect of
this overriden timeout value . It always gets terminated after 5 minutes no
matter what value i set in options block. if run i through sh step then it
works fine. am i missing something in my step implementation which would
abide the overridden values.
pipeline {
agent {
label 'master'
}
environment {
PATH = "${PATH}:/usr/local/MATLAB/R2019b/bin"
}
options {
timeout(time: 15, unit: "MINUTES")
}
stages{
stage('Run command ') {
steps
{
runMATLABCommand "disp('************TIMEOUT
STARTED********');disp(datetime('now'));pause(6*60);disp('************TIMEOUT
ENDED********');disp(datetime('now'))"
}
}
}
}
Thanks & Regards
Nikhil
--
You received this message because you are subscribed to the Google Groups
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-dev/585f74ec-ebc9-4c26-991c-17101825b292o%40googlegroups.com.