Hello Pradeep,

You could use the Run Selector 
<https://github.com/jenkinsci/run-selector-plugin> plugin to get the 
previous build, and determine where you are in the sequence based on that 
and on the current time of day.
It returns a RunWrapper 
<https://github.com/jenkinsci/run-selector-plugin/blob/c4205f57d10c9d6845c851d8cd43a77a8b45dd24/src/main/java/org/jenkinsci/plugins/runselector/steps/SelectRunExecution.java#L77>
 
instance, which you can query using many methods 
<https://javadoc.jenkins.io/plugin/workflow-support/org/jenkinsci/plugins/workflow/support/steps/build/RunWrapper.html>,
 
including methods that you can use to determine if you are at the first 
build of the day.

Hope this helps,
Martin

On Saturday, February 9, 2019 at 2:16:55 AM UTC-5, Pradeep Drall wrote:
>
> Hi,
>
>  
>
> I would like to save the build file (ipa and apk file) with unique name 
> (like current date+new build number), build number should be reset every 
> day based on Jenkins job like
>
> 20190209.*1*
>
> 20190209.*2*
>
> 20190209.3
>
> 20190209.4
>
>  
>
> 20190210.*1*
>
> 20190210*.2*
>
> 20190210.3
>
> 20190210.4
>
> I tried in build name setter plugin but couldn't reset build number every 
> day.
>
>  
>
> This functionality is available in TFS like $(date:yyyyMMdd)$(rev:.r).
>
>
> Please suggest me how to implement this approach in jenkins job.
>
>
> Regards,
>
> Pradeep
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" 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-users/a58984b7-c3a6-45bd-bc56-b3aaef831fc3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to