This Pipelines Task publishes BuildInfo to Artifactory. BuildInfo provides a manifest for the build and includes metadata about the modules, dependencies and other environment variables.
This task can perform the following:
Auto publish build info
Perform Xray scan
Write build info to output resource
Save artifact information
Prerequisites
This task requires a resource that has build to publish build information.
Usage
Basic:
- task: jfrog/build-publish@v0.0.1 id: build-publish input: resourceName: "input_resource_name" # input resource name which need a build publish xrayScan: "true" failOnScan: "false" publishBuildInfo: "true" retry: "true"
By default, the task will use JFROG_CLI_BUILD_NAME
and JFROG_CLI_BUILD_NUMBER
environment variables when publishing the build info.
Input Variables
Name | Required | Default | Description |
---|---|---|---|
resourceName | true | Resource name on which Maven publish is to be performed. | |
xrayScan | false | false | When set to |
failOnScan | false | Any Artifactory integration available | When set to |
publishBuildInfo | false | true | Publishes build info to Artifactory. Requires a BuildInfo resource in the outputResources list. |
retry | false | false | Flag whether to perform retry. |
outputBuildInfoResourceName | false | Name of the output resource to write build information |
Output Variables
None
Exported Environment Variables
None
How does it Work
This Pipelines Task publishes build information to artifactory using the jfrog-cli build-publish. This task uses JFROG_CLI_BUILD_NAME
and JFROG_CLI_BUILD_NUMBER
for fetching build name and build number respectively.
License
This project is licensed under Apache 2.0 license.