Hi,

Thanks for your email.

I will not remove any previous build history.

I am trying to get build name (current date + sequence) with run selector
plugin but couldn't get succeed. Can you please share me code or screen
shot, if possible.

Thanks & regards,
Pradeep Kumar Drall
919711940167
skype - pradeep.kumar2607


On Sun, Feb 10, 2019 at 10:13 PM Martin d'Anjou <[email protected]>
wrote:

> Baptiste is right. If the most recent build gets deleted from the build
> history, it will mess things up.
>
> If you always keep the most recent build and never delete it, then it
> should work.
>
> If you need to delete build history, then you should use an external
> system to provide the daily resetting sequence number. You can do this with
> a database but it is more work.
>
> Martin
>
> On Sunday, February 10, 2019 at 8:05:50 AM UTC-5, Baptiste Mathus wrote:
>>
>> IMO, do not do that.
>> I think you are going to suffer a lot from trying to maintain that
>> system, like never ever have intermediate builds deleted or whatever that
>> would screw up your counting system at some point (given it's generally
>> very easy to delete a build).
>> This seems like unnecessary headaches :).
>>
>> Why not simply use some extended form for timestamping, until minute, or
>> even second?
>>
>> My 2 cents.
>> Le sam. 9 févr. 2019 à 17:46, Martin d'Anjou <[email protected]> a
>> écrit :
>>
>>> 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
>>> <https://groups.google.com/d/msgid/jenkinsci-users/a58984b7-c3a6-45bd-bc56-b3aaef831fc3%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>> --
> 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/f1c24e3a-a0c4-42a7-9c54-bc4575c4b81d%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/f1c24e3a-a0c4-42a7-9c54-bc4575c4b81d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAJv_HQWZR-hknwuOhz26MzBnerq%2B4CmRr%2Bwi2BCuPUzUPqOpVQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to