Free forever, no credit card.Get Started for Free →
← All posts
November 26, 2026 · 6 min read

Does Jenkins Remember Between Runs? A Build Keeps Its Variables. The Next Build Starts With Only Its Parameters.

Does Jenkins Remember Between Runs? A Build Keeps Its Variables. The Next Build Starts With Only Its Parameters. A Jenkins job runs on a timer every night, checks a service, and uses an AI step to decide whether the failures it found are new or already known. On the second night, the same failure appears again. What does tonight's build know about last night's decision? Only what someone saved somewhere by hand and passed back in as an input. Jenkins is careful about data inside one build, and

Does Jenkins Remember Between Runs? A Build Keeps Its Variables. The Next Build Starts With Only Its Parameters.

A Jenkins job runs on a timer every night, checks a service, and uses an AI step to decide whether the failures it found are new or already known. On the second night, the same failure appears again. What does tonight's build know about last night's decision? Only what someone saved somewhere by hand and passed back in as an input. Jenkins is careful about data inside one build, and it records every build in detail. Between builds, nothing learned carries forward on its own.

A build is one run, and it starts from its parameters

When a job runs, Jenkins creates a build: one pass through the pipeline's stages. The values that build works with come from the job definition and from its parameters, the inputs supplied at the moment the build starts, whether they are typed into the build form, passed by an upstream job, or delivered by a webhook or a timer trigger. Everything the build learns after that point belongs to that build.

That scoping is the central fact. A result produced inside Monday's build is Monday's. Tuesday's build is a separate pass with its own parameters, its own stage results, and its own workspace. There is no job-level notebook that each new build opens before it begins. The Jenkinsfile and the job configuration are shared across every build. The data inside each build is partitioned by build, and a new one begins with exactly the parameters it was given at start, no more. By default, even a parameter value entered last time resets to its declared default, which is why remembering a last value across builds takes an extra plugin or a hand-written property file.

The environment object is real memory, with the build as its border

Inside a build, Jenkins passes data between stages properly. Values assigned to the env object stay available to every later stage in that pipeline, and an environment block can set variables for the whole pipeline or for a single stage. The stash and unstash steps package files in one stage and restore them in another, even when the second stage runs on a different agent with a different workspace. Built-in variables such as BUILD_NUMBER, JOB_NAME, and WORKSPACE give every stage the same facts about the build it belongs to.

This is working memory, and it is well built. Its border is the build itself. When the build ends, the environment values and the stashes end with it. Nothing promotes a value a stage computed into a store the next build reads. A value that matters tomorrow survives only if a step writes it somewhere external on purpose: a file kept outside the workspace, a database, a ticket. The passing mechanisms that make one build coherent across six stages and three agents do not extend one inch past the end of that build.

Build history remembers everything, for people

Jenkins does keep a complete record. Every build stays listed on the job page with its result, its duration, its console output, and any files saved with archiveArtifacts, which can be fingerprinted and downloaded later. Teams lean on that history for audits, for debugging a failed night, and for proving which build produced which artifact.

That history is a memory built for people, not for the next build. No stage inside a running build opens the previous build's console output to ask what it found. A scheduled job with an AI step produces, night after night, a complete archive of finished reasoning and a new build that starts with only its parameters. The record of the past and the working memory of the present are two different systems, and only one of them feeds the next build, and it is not the archive. Even the stores that genuinely persist across builds, global properties and the credentials store, hold configuration and secrets ready for any build to use. They keep values ready. They do not keep conclusions.

The gap is where scheduled AI work loses its thread

Put an AI step inside a nightly Jenkins job and the gap becomes concrete. Tonight the step reviews the same failing checks it reviewed last night. Last night it decided three of them were one known issue and said why. Tonight it receives tonight's parameters and tonight's stage data, and it decides again from zero. If it reaches a different conclusion, nothing in the build notices the contradiction, because the earlier conclusion lives in a stored build log that no stage reads.

The usual fixes are hand-built memory. A step writes a summary file to a shared folder, and the next build reads the file first. A database table holds the last state per service, maintained by the pipeline itself. These work until they meet the second controller, the second job, or the second tool: the file lives on one machine, the table is readable by one pipeline, and the AI assistant used outside Jenkins knows none of it. Every automation grows its own private memory, and none of them can see each other.

One memory the next build can actually open

The missing piece is a memory layer that sits outside any single build and is readable from all of them. That is the role Vilix AI fills. An AI step saves what it concluded, with the reasoning attached, and the next build, tonight, next week, or in a different tool entirely, opens that same memory before it starts.

Vilix AI is cloud-hosted, so there is nothing to install or maintain on the Jenkins controller or anywhere else: zero infrastructure to run, patch, or back up. It connects over MCP, the standard protocol AI tools already speak, so the same memory is available to the agent inside the pipeline, to a chat assistant used during the day, and to every other connected tool, identically everywhere. It stores full conversation history, not just extracted facts, so a later build can recover why a decision was made, not only what the decision was. And because the memory is shared rather than trapped in one build log, the nightly job and the person investigating at noon are working from the same past.

Getting started does not require a commitment. The free plan is free forever, and the Pro trial runs 7 days with no card required. The memory stays under your control: export it or delete it at any time. Jenkins will keep doing what it does well, running the same pipeline the same way every night and recording every build. Give its AI steps one memory that survives the end of the build, and tonight's build finally starts from what last night already learned.

Get Started for Free

Persistent memory across ChatGPT, Claude, and the AI tools you already use in Vilix AI.

Get Started for Free

Free forever, no credit card.

Keep reading
What Are the Alternatives to Google InMemory Sessions for the Anthropic SDK?

What Are the Alternatives to Google InMemory Sessions for the Anthropic SDK? The alternatives to Google InMemory sessions for the Anthropic SDK are a database-backed session store you run yourself, a managed session service from a cloud platform, or a hosted memory layer your agent connects to over MCP. InMemory sessions keep state in process memory only, so every restart, redeploy, or scale-out wipes what your agent knew. Any of the three alternatives fixes that by writing session state and co

Does Spinnaker Remember Between Runs? An Artifact Can Carry Over From the Prior Execution. The Next Execution Starts With Only Its Trigger.

Does Spinnaker Remember Between Runs? An Artifact Can Carry Over From the Prior Execution. The Next Execution Starts With Only Its Trigger. A Spinnaker pipeline that deploys the same service every day can look like it knows the service by heart. The right image arrives, the right manifest renders, and the execution list shows every earlier deployment in order. Underneath, each execution is its own record with its own context, built from its trigger and its stages. What one execution learned sta

Your CLAUDE.md Keeps Growing, and the Next Tool Still Starts From Zero

Your CLAUDE.md Keeps Growing, and the Next Tool Still Starts From Zero Every coding agent setup I see lately starts the same way. One file. A few honest lines about the project, how to run the tests, what not to touch. It works beautifully for about a week. Then the agent does something dumb that it should have known not to do. So you add a line. Then it argues with a fact you already wrote down somewhere else. Another line. Then a new project starts, and you copy the file and start editing ou