Dataset
Jenkins job configuration and build log datasets for AI training
A Jenkins dataset is a copy of the job and build records on a company's Jenkins controller: each Job's config.xml or Pipeline definition, and for each Build its cause, parameters, result, duration, console log, Pipeline stages and steps, test results and archived artifact list, with the installed plugin list that gives the files their meaning. SourceX sources it to a buyer's spec from established businesses that run Jenkins. Each dataset is de-identified and licensed for an agreed permitted use.
Dataset manifest
Sourced to your spec- What it is
- Job definitions and per-build records from a Jenkins controller's home directory, with console logs and the plugin list
- Typical systems
- Jenkins controller and agents; Freestyle, Pipeline, Multibranch and Matrix jobs; the Git, JUnit, Folders and Credentials Binding plugins
- Typical history
- Specified by the buyer; job definitions can be old, while build depth is set by each job's discard-old-builds setting
- Modality
- Console log text; Groovy Pipeline scripts and shell steps; XML job and build records; JUnit result XML
- Delivery formats
- Agreed per order; commonly JSONL per build with the log as text, the original config.xml and build.xml, and Jenkinsfiles as files
- Preparation
- Credentials, tokens and encrypted secret values removed; host names, IPs, paths and user IDs replaced consistently
- Licensing
- Rights reviewed per controller, including third-party code and tool output in logs; permitted use set in the license
- Availability
- Sourced to your spec by job type, build tool, share of Pipeline jobs and retained build depth; supply is not guaranteed
What a delivery contains
Fields vary by source system and are fixed per order. A typical delivery includes:
| Field | Type | What it holds |
|---|---|---|
| build_id | string | Re-keyed ID for one Build: the Job's full name with its Folder path, and the build number. |
| job_type | enum | The Job's kind, read from its config.xml: Freestyle, Pipeline, a branch job of a Multibranch Pipeline, or Matrix. |
| job_config | object | The Job's config.xml parsed: SCM, triggers, Parameter definitions, build steps, publishers, label expression and discard settings. |
| pipeline_script | object | For a Pipeline, the Groovy script the Build ran, or the script path and repository when the Jenkinsfile lives in source control. |
| cause | object | Why the Build started, from its cause record: a user, an SCM change, a timer or an upstream Build. |
| parameters | array | Parameter names and values recorded on the Build, with password Parameters removed. |
| result | object | The Build's result (SUCCESS, UNSTABLE, FAILURE, ABORTED or NOT_BUILT), start time, duration and the Node (agent) it ran on. |
| stages | array | Pipeline only: each Stage with its name, status, start and duration, including parallel branches. |
| steps | array | Pipeline only: each Step with its function, such as sh or junit, its arguments, status and span in the Console log. |
| console_log | string | The Build's log file as plain text, with console annotations stripped and secrets scrubbed. |
| scm_changes | object | The revision the Build checked out and the commits since the previous Build, from its changelog file. |
| test_results | object | Test results recorded by the JUnit publisher: suites, cases, durations, failures and skips. |
| artifacts | array | Artifacts archived with the Build, as paths and sizes, with fingerprints where recorded. |
| plugins_ref | string | Pointer to the Plugin list with versions and the Jenkins core version at the time of the copy. |
Field names from the table above; values are masked placeholders.
Example record
{
"build_id": "platform/api-service#1482",
"job_type": "pipeline",
"job_config": {
"scm": "git",
"script_path": "Jenkinsfile",
"triggers": [
"scm_polling"
],
"discard_old_builds": {
"num_to_keep": 50
}
},
"pipeline_script": {
"syntax": "declarative",
"kept_with_build": true,
"shared_libraries": [
"build-lib"
]
},
"cause": {
"type": "scm_change"
},
"parameters": [
{
"name": "DEPLOY_ENV",
"value": "staging"
}
],
"result": {
"status": "UNSTABLE",
"started_at": "2024-09-17T08:41:12Z",
"duration_ms": 486210,
"node": "agent_linux_07"
},
"stages": [
{
"name": "Build",
"status": "SUCCESS",
"duration_ms": 201440
},
{
"name": "Unit tests",
"status": "UNSTABLE",
"duration_ms": 263900
}
],
"steps": [
{
"stage": "Build",
"function": "sh",
"arguments": "./gradlew assemble",
"status": "SUCCESS"
},
{
"stage": "Unit tests",
"function": "junit",
"arguments": "build/test-results/**/*.xml",
"status": "UNSTABLE"
}
],
"console_log": "Started by an SCM change\n[Pipeline] node\nRunning on agent_linux_07 in /home/jenkins/workspace/[JOB]\n[Pipeline] { (Build)\n[Pipeline] sh\n+ ./gradlew assemble\n[...]\n[Pipeline] junit\nRecording test results\n[Pipeline] End of Pipeline\nFinished: UNSTABLE",
"scm_changes": {
"revision": "[SHA]",
"commits_since_previous_build": 2
},
"test_results": {
"total": 1312,
"failed": 3,
"skipped": 14,
"failed_cases": [
"InvoiceRoundingTest.roundsHalfEven"
]
},
"artifacts": [
{
"path": "build/libs/api-service.jar",
"fingerprinted": true
}
],
"plugins_ref": "plugins_at_export.json"
}Synthetic record for illustration. Field names, structure and format are agreed per order.
What AI teams use it for
Diagnose failures from console logs
A failed Build's log, its revision and the next passing Build of the same Job give a symptom and a candidate fix.
Write and repair Jenkinsfiles
Pipeline scripts paired with their runs show which stages, steps and plugin calls work in practice.
Translate Freestyle jobs
A config.xml with shell steps and publishers is the input for converting jobs to Pipeline or to another CI system.
Learn build and release procedure
Shell steps in long-lived jobs record how a company compiles, packages, signs and deploys its software.
Evaluate log triage
UNSTABLE and FAILURE Builds with JUnit records make graded items: which test failed, and why.
Use-case guides: Coding agents, Private evaluation sets, Enterprise and computer-use agents
What makes this data valuable
Pipeline share
The proportion of Jobs that are Pipeline, whose Builds carry Stage and Step records.
Retained depth
Builds kept per Job against its next build number, with the oldest retained date.
Script kept with the run
Pipeline Builds whose record holds the script text as executed.
Plugin list with versions
Delivered with every copy, so each config.xml element can be interpreted.
Test reports published
Builds with JUnit results, which make UNSTABLE readable as failing tests.
Revision on record
Builds that name the commit they checked out, tying each log to code.
Record timeline
Jenkins dataset
A job is a config.xml, a build is a directory, and plugins define the schema
Jenkins has no database. Under the controller's home directory each Job is a folder that holds a config.xml, and each Build is a numbered directory beneath it holding a build.xml, a log file and whatever plugins added: a changelog of commits, a JUnit result file, archived artifacts. A Multibranch Pipeline keeps a sub-job per branch. An export is a file copy, and a response from the remote API is a view of those files.
The XML is Jenkins serializing its own Java objects, so element names are class names that plugins contribute. A shell build step is a hudson.tasks.Shell element holding a command, a Git checkout is an scm element of class GitSCM, and many elements carry an attribute naming the plugin and version that wrote them. What a publisher or build wrapper does is defined by plugin code, not by the file, so the plugin list is part of the schema: the same job XML behaves differently under a different plugin set, and configuration left by a removed plugin no longer loads fully.
Saving a job overwrites its config.xml. Unless the Job Configuration History plugin was installed, or jobs were generated from Job DSL scripts kept in git, builds run years apart sit beside one current definition. Pipeline Builds are the exception: the build record normally keeps the script text it ran, which is what Replay reads. When the Jenkinsfile is loaded from source control the Job holds only a repository and a script path, and shared libraries live in further repositories. In a Freestyle job the logic is the shell steps inside config.xml, where much of a long-lived company's release knowledge sits.
Discarded builds leave gaps, and only Pipeline runs carry stages
Depth is set job by job. The discard-old-builds setting keeps a number of Builds or a number of days, with separate limits for artifacts, and Jenkins deletes the directories of the rest. A job created long ago may hold only its latest runs, while its nextBuildNumber file shows how many ever ran. Builds marked to be kept forever survive, which can tilt old history toward releases.
A Freestyle Build's Console log is one text stream: a Started by line, each shell command echoed behind a plus sign because Jenkins runs shell steps with tracing on by default, the tool output, and a Finished line with the result. Step boundaries have to be inferred from that text. A Pipeline Build also stores a flow graph, one node per step and block, with Stage labels, timings, errors and each step's place in the log, so Stages and Steps can be exported with their own log slices. The raw log file also carries console annotations as encoded sequences, which a plain-text export strips.
On a sample, check three things. UNSTABLE normally means the steps ran and a publisher, usually JUnit, reported failing tests, so look for the result file. Builds read through the remote API may be incomplete, because a Job's default build list is shortened. And Credentials Binding masks bound values in the log, but only exact matches: a secret that was encoded or shell-escaped prints in clear, and one typed into a shell step or a plain string Parameter was never bound, so nothing masks it. Job XML can also hold encrypted secret values, which only the controller's key files can open, so those files must stay out of the delivery.
What to check before licensing
- Ask for the installed Plugin list with versions and the Jenkins core version as of the copy, since they define what each config.xml element does.
- Ask, per Job, for the next build number, the number of Builds retained, the oldest retained date and the discard-old-builds setting.
- Measure the share of Jobs that are Pipeline versus Freestyle, and confirm Pipeline Builds arrive with Stage and Step records, not the Console log alone.
- Confirm how the copy was made: a file copy of the home directory, or the remote API, where the full build list has to be asked for explicitly.
- Search sample config.xml files, Parameters and Console logs for credentials, private keys, internal host names and deployment secrets, and confirm the controller's key files and credentials store are excluded.
- Ask whether Jenkinsfiles and shared libraries held in source control are in scope, and whether Pipeline Builds keep the script text they ran.
- Have the buyer and the data owner each check the Jenkins project's terms, and those of any plugin vendor, commercial distribution or hosted service in use, on exported data and API use.
Delivery No files move before a signed license. A listing or a request grants no files by itself.
How licensing works through SourceX
- 1
Define
Send the domain, modality, volume, format, timeline and permitted use you need.
- 2
Source
SourceX identifies businesses that hold matching data and are open to licensing it.
- 3
Qualify
Fit, rights and quality are checked, and you review samples before committing.
- 4
License
Scope, permitted use, exclusivity, price and obligations are agreed in writing.
- 5
Deliver
Approved data is prepared, de-identified where required and transferred securely.
Questions Acquisition Partners ask
Can I get build history back to when a job was created?
Usually not. Each Job's discard-old-builds setting deletes build directories by count or age, and teams set it to protect the controller's disk. The Job may be old while only recent Builds remain. Ask for the next build number and the retained count per Job, and state the minimum retained depth you need in your request.
Do Jenkins logs come with stage and step structure?
Only for Pipeline jobs. A Pipeline Build stores a graph of its Stages and Steps with timings, status and each step's place in the log. A Freestyle Build stores one unstructured Console log, where step boundaries have to be inferred from echoed shell commands and plugin banners. State in your request what share of Pipeline Builds you need.
Are Jenkinsfiles included?
Where the supplier licenses them. An inline Pipeline script sits in the Job's config.xml. A Jenkinsfile loaded from source control is in the repository, with only its path in the Job, and shared libraries are in further repositories. A Pipeline Build usually keeps the script text it ran. Ask which of these the delivery holds.
How are credentials kept out of the dataset?
By scrubbing during preparation, not by Jenkins, and you should verify the result on a sample. Jenkins keeps secrets encrypted in its credentials store and masks bound values in logs, but masking matches the exact secret text only, and secrets typed into shell steps or plain Parameters are not masked. Ask how logs and job XML were scanned, and search the sample yourself.
Can builds be linked to the code that was built?
Often, through the Build's SCM data. With the Git plugin a Build records the revision it checked out and the commits since the previous Build. That ties a failing log to a commit, and the next passing Build to a candidate fix. The source sits in the repository, which is licensed separately.
Is SourceX affiliated with the Jenkins project?
Jenkins is named to identify the system the records come from. That does not imply a partnership with or endorsement by the Jenkins project or the Continuous Delivery Foundation. The records belong to the business that runs Jenkins, which licenses them under a signed agreement, and a request does not guarantee a matching dataset. Buyers should still confirm with counsel that the vendor's terms allow the intended use of exported data.
Related datasets
- CI/CD pipeline logs and build failures
Pipeline runs with step logs and exit codes, joined to triggering and fixing commits
- Test suites with run-by-run results
Automated test code plus one result row per test per run, keyed to the commit under test
- Operational runbooks
Alert response procedures, rollback steps and automation scripts, joined to the alerts and incidents they were used on
- GitHub Actions workflow runs and logs
Workflow files and their runs: attempts, jobs, steps, log text, annotations and artifacts, tied to commit and event
- TeamCity build and test histories
Builds of each build configuration with changes, build log, build problems, test occurrences, investigations, mutes and snapshot dependencies
Evaluating this data for procurement?
Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.
Request dataset diligenceTell us what your models need
Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.
Updated 26 November 2026.