jenkinsci / jenkinsci/jenkins-scripts

jenkins-scripts/scriptler/jobExecutedInDateRange.groovy

Open
#116 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Groovy
Stars
911
Forks
560
PR merge metrics
No merged PRs in 30d

Description

Hi,

Thanks for your script, I tried to execute your script but i am getting result like this multiple times.

SUCCESS Tue Jun 15 14:18:43 UTC 2021
FAILURE Tue Jun 15 14:18:43 UTC 2021
FAILURE Tue Jun 15 14:18:43 UTC 2021
FAILURE Tue Jun 15 14:18:43 UTC 2021
FAILURE Tue Jun 15 14:18:43 UTC 2021
FAILURE Tue Jun 15 14:18:43 UTC 2021
FAILURE Tue Jun 15 14:18:43 UTC 2021
FAILURE Tue Jun 15 14:18:43 UTC 2021
SUCCESS Tue Jun 15 14:18:43 UTC 2021
ABORTED Tue Jun 15 14:18:43 UTC 2021
SUCCESS Tue Jun 15 15:36:10 UTC 2021
SUCCESS Tue Jun 15 15:36:10 UTC 2021
SUCCESS Tue Jun 15 15:36:10 UTC 2021

I removed here job name due to security issue, in the above status, when i execute the script, it is showing the same time, same status with multiple times times for a same job. could you please help me to get only one time to get the status for particular time.

Thanks
Madhu

Contributor guide

Open the contributing guide

Research direction

Start by reading jenkins-scripts/scriptler/jobExecutedInDateRange.groovy and run it against a job that reproduces the repeated entries. Check how executions are selected and reported for the requested date range. Done means each job execution is reported once with its status and time, rather than duplicated output.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy
Domain
ci-cd
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.