Search


Cloud customer?
Upgrade in MyJFrog >


Working with an older version?

JFrog Artifactory 6.x
JFrog Xray 2.x
JFrog Mission Control 3.x
JFrog Distribution 1.x
JFrog Enterprise+ (Pre-Platform Release)




Overview

A BuildInfo resource is the metadata associated with a build in Artifactory.


JFrog Pipelines automatically creates BuildInfo when any of the Build steps like MvnBuild, NpmBuild, GradleBuild, or DockerBuild are used to generate packages. BuildInfo is published to Artifactory through the PublishBuildInfo step, by setting a flag in Build steps or by providing that resource in steps like NpmPublishGoPublishModule, GoPublishBinary and DockerPush.

Page Contents

Usage

resources:
  - name: 		<string>
    type: BuildInfo
    configuration:
      sourceArtifactory: 	artifactoryIntegration
      buildName: 			<string>
      buildNumber: 			<number>
      externalCI:           jenkinsIntegration 

Tags

name 

An alphanumeric string (underscores are permitted) that identifies the resource.

type 

Must be BuildInfo for this resource type.

configuration

Specifies all configuration selections for the resource.

Tag

Description

Required/Optional
sourceArtifactoryThe name of the Artifactory IntegrationRequired
buildName 

The name of the build to associate with this BuildInfo. Recommend using the environment variable available from the  step that generated the build.

Required
buildNumber 

The number of the build to associate with this BuildInfo. Recommend using the environment variable available from the step that generated the build.

Required
externalCIThe name of a linked Jenkins IntegrationOptional


Environment Variables

Whenever Buildinfo is used in a step, a set of environment variables is automatically made available that you can use in your step.

Environment Variable

Description

res_<resource_name>_name
Name of the resource
res_<resource_name>_buildName
The name of the build associated with this BuildInfo.
res_<resource_name>_buildNumber
The number of the build associated with this BuildInfo.
res_<resource_name>_targetRepo
When set by PromoteBuild, the name of a repository in Artifactory for the BuildInfo.
  • No labels
Copyright © 2020 JFrog Ltd.