Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7945823
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T00:59:04+00:00 2026-06-04T00:59:04+00:00

We have a lot of jenkins tasks that process some date-dependent data, for example,

  • 0

We have a lot of jenkins tasks that process some date-dependent data,
for example, aggregations per hour, per day.

All of them are configured to run periodically
but native jenkins isn’t able to trigger periodical job automaticaly with dynamic parameters, and we have to calculate required parameters inside the script at
execution time,
e.g in the bash script code:

PREVHOUR=$(date --date="-1 hour" "+%Y-%m-%d %H")

We can also use $BUILD_ID environment variable to get build start time.

The problem is:
When all of the slots (workers) are busy, jenkins puts this job into
queue.
And the parameter calculations will be wrong when such a task is
executed next hour after triggering.

So, we can’t find the way to get TRIGGER time, not build starting time.

Of Course, there are few inconvenient solutions as:

  • run simple periodical job on a reserved machine which triggers other jobs by url with params
  • file that track the last run time of script

We have tried to find plug-ins that will fit our needs, and have found
this plugin, but it works only in manual (UI “build now” click) mode.

Is there any plug-in for Jenkins to calculate dinamic parameters at periodical trigger time?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T00:59:05+00:00Added an answer on June 4, 2026 at 12:59 am

    You can use ScriptTrigger plugin. It evaluates Groovy script periodically and supports parameterized builds.

    1. Add a TRIGGER_TIME parameter to a project.
    2. Use Groovy script:

      now = new Date();
      param = new File("trigger.time");
      param.write("TRIGGER_TIME="+now.toString());
      return true;
      

      It will write trigger time to a properties file “trigger.time” on every polling and trigger a new build.

    3. Set Properties File Path (in advanced settings) to a “trigger.time“, and every scheduled build will get TRIGGER_TIME parameter with designated time.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have lot of data and for sample purpose mention below data d1 date
I have lot of lists: for example: Categories, and subCategories, in my case some
I have a requirement to use date picker in my applicaiton. I have lot
I am creating Excel file download using NOPI libraries. I have lot of data
I am trying to build a data mart. I have lot of dimensions, and
We have a lot of customized spreadsheet solutions that are being used and we
We have a lot of queries select * from tbl_message that get stuck on
I have lot of executable that I have compiled (long time back) for many
I have lot of this hyperlink in my page. Some of them are visible
I have a lot of jobs in jenkins and we have decided to make

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.