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 8983465
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:50:51+00:00 2026-06-15T20:50:51+00:00

I have a time-triggered job which needs to retrieve certain values stored in a

  • 0

I have a time-triggered job which needs to retrieve certain values stored in a previous run of this job.

Is there a way to store values between job runs in the Jenkins environment?

E.g., I can write something like next in a shell script action:

XXX=`cat /hardcoded/path/xxx`
#job itself
echo NEW_XXX > /hardcoded/path/xxx

But is there a more reliable approach?

  • 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-15T20:50:52+00:00Added an answer on June 15, 2026 at 8:50 pm

    A few options:

    • Store the data in the workspace. If the data isn’t critical (i.e. it’s ok to nuke it when the workspace is nuked) that should be fine. I only use this to cache expensive-to-compute data such as prebuilt library dependancies.
    • Store the data in some fixed location in the filesystem. You’ll make jenkins less self-contained and thus make migrations+backups more complex – but probably not by much; especially if you store the data in some custom user-subdirectory of jenkins. parallel builds will also be tricky, and distributed builds likely impossible. Jenkins has a userContent subdirectory you could use for this – that way the file is at least part of the jenkins install and thus more easily migrated or backed up. I do this for the (rather large) code coverage trend files for my builds.
    • Store the data on a different machine (e.g. a database). This is more complicated to set up, but you’re less dependant on the local machine’s details, and it’s probably easier to get distributed and parallel builds working. I’ve done this to maintain a live changelog.
    • Store the data as a build artifact. This means looking at previous build’s artifacts. It’s safe and repeatable, and because Uri’s are used to access such artifacts, OK for distributed builds too. However, you need to deal with failed builds (should you look back several versions? start from scratch?) and you’ll be storing many copies, which is just fine if it’s 1KB but less fine if it’s 1GB. Another downside here is that you’ll probably need to open up jenkin’s security settings quite far to allow annonymous access to artifacts (since you’re just downloading from a uri).

    The appropriate solution will depend on your situation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have time in NSString like 15:15 I want to covert this NSString time
In My application have time consuming process.There fore i try to do that operation
I need to learn RegEx but don't have time to figure this out right
I have a service that will run every X minutes. If that job takes
I have a job NIGHTLY that runs one time each night by a periodical
Another question in large scale programming: I have a job queue with time stamps
I developed an Application that is being triggered by a SSIS Job and needs
I have created a batch file that regularly gets triggered from an automated job.
I have 2 different jobs, what must be triggered in the same time. I'd
I have a job which I trigger with parameters from another job using wget

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.