readBuildArtifact
Retrieve and read the content of specific build artifacts from Jenkins jobs, supporting both text and binary file formats with optional build number specification.
Instructions
Read the content of a specific build artifact
Input Schema
Name | Required | Description | Default |
---|---|---|---|
artifactPath | Yes | Relative path to the artifact (e.g., "target/app.jar", "reports/test.xml") | |
buildNumber | No | Build number (optional, defaults to last build) | |
format | No | Format for returning binary files (default: text). Use base64 for binary files. | |
jobFullName | Yes | Full path of the Jenkins job |
Input Schema (JSON Schema)
{
"properties": {
"artifactPath": {
"description": "Relative path to the artifact (e.g., \"target/app.jar\", \"reports/test.xml\")",
"type": "string"
},
"buildNumber": {
"description": "Build number (optional, defaults to last build)",
"type": "integer"
},
"format": {
"description": "Format for returning binary files (default: text). Use base64 for binary files.",
"enum": [
"text",
"base64"
],
"type": "string"
},
"jobFullName": {
"description": "Full path of the Jenkins job",
"type": "string"
}
},
"required": [
"jobFullName",
"artifactPath"
],
"type": "object"
}