It might help to realize that a pipeline script is just Groovy code.
If you need to make sure that something is only executed when the
current time is between 1pm and 2pm, just get the current time,
convert it to hour of day, and have an "if" block comparing that value
against your constraint. You may need to drill down into the details
of how to do each of those pieces, but that's the basic idea.

On Wed, Dec 28, 2016 at 1:56 AM, Stefan Lorenz <lorenz.ste...@gmail.com> wrote:
> Hi,
>
> i have a conditional step in a build configuration that is triggered by
> time, e.g. if time is between 1:00 and 2:00.
> How do I map that in pipeline script?
>
>
>
>
> Thanks and regards
> Stefan
>
> --
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/786dd1ae-d4e0-4b59-953b-4e043e7e4452%40googlegroups.com.
> 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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAA5t8VpAAP_kyiTgB3-kQxKz4j_LpsT60huyRvDHWOPru802BA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to