The following plugin provides functionality available through Pipeline-compatible steps. Read more about how to integrate steps into your Pipeline in the Steps section of the Pipeline Syntax page.
For a list of other such plugins, see the Pipeline Steps Reference page.
step([$class: 'BuildstashBuilder']): Upload to BuildstashThis build step uploads build artifacts to the Buildstash web service in Freestyle projects.
Note: CI/CD parameters are automatically populated from Jenkins context and cannot be manually set in Freestyle projects.
All fields support dynamic values using environment variables. Use ${VAR_NAME} syntax in any field to reference environment variables set in previous build steps.
Example:
export PLATFORM=ios${PLATFORM}This works for all fields including file paths, version components, platform, stream, labels, architectures, and SCM fields.
${VAR_NAME} for dynamic values)After a successful upload, you can view the upload results on the build page. The build action will show:
For more information, visit the Buildstash Documentation.
apiKey : String (optional)
architectures : String (optional)
customBuildNumber : String (optional)
expansionFilePath : String (optional)
labels : String (optional)
notes : String (optional)
platform : String (optional)
primaryFilePath : String (optional)
stream : String (optional)
structure : String (optional)
vcBranch : String (optional)
vcCommitSha : String (optional)
vcCommitUrl : String (optional)
vcHost : String (optional)
vcHostType : String (optional)
vcRepoName : String (optional)
vcRepoUrl : String (optional)
versionComponent1Major : String (optional)
versionComponent2Minor : String (optional)
versionComponent3Patch : String (optional)
versionComponentExtra : String (optional)
versionComponentMeta : String (optional)
buildstash: Upload to BuildstashThis step uploads build artifacts to the Buildstash web service.
Note: CI/CD parameters are automatically populated from Jenkins context and cannot be manually set in pipeline steps.
All fields support dynamic values using environment variables. In pipeline scripts, you can use Groovy variables directly or string expansion.
Examples:
platform: env.PLATFORMplatform: '${PLATFORM}'primaryFilePath: "${env.WORKSPACE}/build/app.ipa"This works for all fields including file paths, version components, platform, stream, labels, architectures, and SCM fields.
// Using environment variables
buildstash(
apiKey: 'your-api-key',
structure: 'file',
primaryFilePath: "${env.WORKSPACE}/build/app.ipa",
versionComponent1Major: '1',
versionComponent2Minor: '0',
versionComponent3Patch: '0',
platform: env.PLATFORM, // Using environment variable
stream: env.STREAM // Using environment variable
)
// Or with string expansion
buildstash(
apiKey: 'your-api-key',
primaryFilePath: '${WORKSPACE}/build/app.ipa',
versionComponent1Major: '1',
versionComponent2Minor: '0',
versionComponent3Patch: '0',
platform: '${PLATFORM}', // String expansion
stream: '${STREAM}' // String expansion
)
For more information, visit the Buildstash Documentation.
apiKey : String (optional)
architectures : String (optional)
customBuildNumber : String (optional)
expansionFilePath : String (optional)
labels : String (optional)
notes : String (optional)
platform : String (optional)
primaryFilePath : String (optional)
stream : String (optional)
structure : String (optional)
vcBranch : String (optional)
vcCommitSha : String (optional)
vcCommitUrl : String (optional)
vcHost : String (optional)
vcHostType : String (optional)
vcRepoName : String (optional)
vcRepoUrl : String (optional)
versionComponent1Major : String (optional)
versionComponent2Minor : String (optional)
versionComponent3Patch : String (optional)
versionComponentExtra : String (optional)
versionComponentMeta : String (optional)
Please submit your feedback about this page through this quick form.
Alternatively, if you don't wish to complete the quick form, you can simply indicate if you found this page helpful?
See existing feedback here.