We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sendStartEvaluationEvent evaluates 0 as a negative number
Environment
keptn version
kubectl version
Affected Component keptn-jenkins-library only
To Reproduce Within Jenkins pipeline, call sendStartEvaluationEvent and pass argument(s) startime or endtime with a value of 0.
sendStartEvaluationEvent
startime
endtime
def keptnContext = keptn.sendStartEvaluationEvent starttime:"600", endtime:"0"
Results in a failure and the output of:
echo "No negative numbers allowed for endtime!"
The issue is with these code blocks:
591: if (seconds > 0) {
601: if (seconds > 0) {
The operator should be seconds >= 0 so that it includes 0, as 0 is neither positive nor negative, and a valid parameter for this function.
seconds >= 0
Expected behavior Treat 0 as a valid parameter for this function.
Current behavior Does not treat 0 as a valid parameter for this function.
Screenshots N/A
Additional context N/A
The text was updated successfully, but these errors were encountered:
No branches or pull requests
sendStartEvaluationEvent evaluates 0 as a negative number
Environment
keptn version
): 16.X (although it shouldn't be relevant)kubectl version
): N/AAffected Component
keptn-jenkins-library only
To Reproduce
Within Jenkins pipeline, call
sendStartEvaluationEvent
and pass argument(s)startime
orendtime
with a value of 0.Results in a failure and the output of:
The issue is with these code blocks:
The operator should be
seconds >= 0
so that it includes 0, as 0 is neither positive nor negative, and a valid parameter for this function.Expected behavior
Treat 0 as a valid parameter for this function.
Current behavior
Does not treat 0 as a valid parameter for this function.
Screenshots
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: