Documentation ¶
Index ¶
- Constants
- Variables
- type BaseStepConfiguration
- type BuildInfoResourceConfiguration
- type BuildOn
- type CiSetupData
- type CiType
- type CustomImage
- type GitProvider
- type GitRepoResourceConfiguration
- type GithubActionsGenerator
- type GradleStepConfiguration
- type IncludeExclude
- type InputStep
- type JFrogPipelinesConfigurator
- type JFrogPipelinesYamlGenerator
- type JenkinsfileDslGenerator
- type JenkinsfileGenerator
- type MavenStepConfiguration
- type NativeStepConfiguration
- type Pipeline
- type PipelineConfiguration
- type PipelineEnvVars
- type PipelineStep
- type PipelineYml
- type Resource
- type ResourceConfiguration
- type ResourceType
- type Runtime
- type RuntimeImage
- type RuntimeType
- type StepConfiguration
- type StepExecution
- type StepIntegration
- type StepResource
- type StepType
- type TechnologyInfo
- type VcsServerDetails
Constants ¶
View Source
const ( Github = "GitHub" GithubEnterprise = "GitHub Enterprise" Bitbucket = "Bitbucket" BitbucketServer = "Bitbucket Server" Gitlab = "GitLab" )
View Source
const ( Jenkins = "Jenkins" GithubActions = "GitHub Actions" Pipelines = "JFrog Pipelines" )
View Source
const ConfigServerId = "jfrog-instance"
View Source
const GithubActionsFileName = "build.yml"
View Source
const (
JenkinsDslFileName = "Jenkinsfile"
)
View Source
const JenkinsfileName = "Jenkinsfile"
View Source
const (
PipelinesYamlName = "pipelines.yml"
)
Variables ¶
View Source
var GithubActionsDir = filepath.Join(".github", "workflows")
View Source
var GithubActionsFilePath = filepath.Join(GithubActionsDir, GithubActionsFileName)
Functions ¶
This section is empty.
Types ¶
type BaseStepConfiguration ¶
type BaseStepConfiguration struct { EnvironmentVariables map[string]string `yaml:"environmentVariables,omitempty"` Integrations []StepIntegration `yaml:"integrations,omitempty"` InputResources []StepResource `yaml:"inputResources,omitempty"` OutputResources []StepResource `yaml:"outputResources,omitempty"` InputSteps []InputStep `yaml:"inputSteps,omitempty"` }
type BuildInfoResourceConfiguration ¶
type BuildInfoResourceConfiguration struct { SourceArtifactoryIntegration string `yaml:"sourceArtifactory,omitempty"` BuildName string `yaml:"buildName,omitempty"` BuildNumber json.Number `yaml:"buildNumber,omitempty"` }
func (BuildInfoResourceConfiguration) ResourceConfigurationMarkerFunction ¶
func (b BuildInfoResourceConfiguration) ResourceConfigurationMarkerFunction()
type CiSetupData ¶
type CiSetupData struct { RepositoryName string ProjectDomain string VcsBaseUrl string LocalDirPath string GitBranch string BuildName string CiType CiType // A collection of the technologies that were detected in the project. DetectedTechnologies map[coreutils.Technology]bool // The chosen build technology stored with all the necessary information. BuiltTechnology *TechnologyInfo VcsCredentials VcsServerDetails GitProvider GitProvider }
func (*CiSetupData) GetBuildCmdForNativeStep ¶ added in v2.4.0
func (sd *CiSetupData) GetBuildCmdForNativeStep() string
Trim technology name from command prefix. (example: mvn clean install >> clean install)
func (*CiSetupData) GetRepoFullName ¶
func (sd *CiSetupData) GetRepoFullName() string
type CustomImage ¶
type GitProvider ¶
type GitProvider string
type GitRepoResourceConfiguration ¶
type GitRepoResourceConfiguration struct { Path string `yaml:"path,omitempty"` GitProvider string `yaml:"gitProvider,omitempty"` BuildOn `yaml:"buildOn,omitempty"` Branches IncludeExclude `yaml:"branches,omitempty"` }
func (GitRepoResourceConfiguration) ResourceConfigurationMarkerFunction ¶
func (g GitRepoResourceConfiguration) ResourceConfigurationMarkerFunction()
type GithubActionsGenerator ¶
type GithubActionsGenerator struct {
SetupData *CiSetupData
}
type GradleStepConfiguration ¶
type GradleStepConfiguration struct { NativeStepConfiguration `yaml:",inline"` GradleCommand string `yaml:"gradleCommand,omitempty"` ResolverRepo string `yaml:"resolverRepo,omitempty"` UsesPlugin bool `yaml:"usesPlugin,omitempty"` UseWrapper bool `yaml:"useWrapper,omitempty"` }
type IncludeExclude ¶
type JFrogPipelinesConfigurator ¶
type JFrogPipelinesConfigurator struct { SetupData *CiSetupData PipelinesToken string }
func (*JFrogPipelinesConfigurator) Config ¶
func (pc *JFrogPipelinesConfigurator) Config() (vcsIntName, rtIntName string, err error)
type JFrogPipelinesYamlGenerator ¶
type JFrogPipelinesYamlGenerator struct { VcsIntName string RtIntName string SetupData *CiSetupData }
type JenkinsfileDslGenerator ¶ added in v2.4.0
type JenkinsfileDslGenerator struct {
SetupData *CiSetupData
}
func (*JenkinsfileDslGenerator) GenerateDsl ¶ added in v2.4.0
func (jg *JenkinsfileDslGenerator) GenerateDsl() (jenkinsfileBytes []byte, jenkinsfileName string, err error)
type JenkinsfileGenerator ¶
type JenkinsfileGenerator struct {
SetupData *CiSetupData
}
type MavenStepConfiguration ¶
type MavenStepConfiguration struct { NativeStepConfiguration `yaml:",inline"` MvnCommand string `yaml:"mvnCommand,omitempty"` ResolverSnapshotRepo string `yaml:"resolverSnapshotRepo,omitempty"` ResolverReleaseRepo string `yaml:"resolverReleaseRepo,omitempty"` DeployerSnapshotRepo string `yaml:"deployerSnapshotRepo,omitempty"` DeployerReleaseRepo string `yaml:"deployerReleaseRepo,omitempty"` }
type NativeStepConfiguration ¶
type NativeStepConfiguration struct { BaseStepConfiguration `yaml:",inline"` ForceXrayScan bool `yaml:"forceXrayScan,omitempty"` FailOnScan bool `yaml:"failOnScan,omitempty"` AutoPublishBuildInfo bool `yaml:"autoPublishBuildInfo,omitempty"` }
type Pipeline ¶
type Pipeline struct { Name string `yaml:"name,omitempty"` Configuration PipelineConfiguration `yaml:"configuration,omitempty"` Steps []PipelineStep `yaml:"steps,omitempty"` }
type PipelineConfiguration ¶
type PipelineConfiguration struct { Runtime `yaml:"runtime,omitempty"` PipelineEnvVars `yaml:"environmentVariables,omitempty"` }
type PipelineEnvVars ¶
type PipelineStep ¶
type PipelineStep struct { Name string `yaml:"name,omitempty"` StepType `yaml:"type,omitempty"` Configuration StepConfiguration `yaml:"configuration,omitempty"` Execution StepExecution `yaml:"execution,omitempty"` }
type PipelineYml ¶
type Resource ¶
type Resource struct { Name string `yaml:"name,omitempty"` ResourceType `yaml:"type,omitempty"` ResourceConfiguration `yaml:"configuration,omitempty"` }
type ResourceConfiguration ¶
type ResourceConfiguration interface {
ResourceConfigurationMarkerFunction()
}
type ResourceType ¶
type ResourceType string
const ( GitRepo ResourceType = "GitRepo" BuildInfo ResourceType = "BuildInfo" )
type Runtime ¶
type Runtime struct { RuntimeType `yaml:"type,omitempty"` Image RuntimeImage `yaml:"image,omitempty"` }
type RuntimeImage ¶
type RuntimeImage struct {
Custom CustomImage `yaml:"custom,omitempty"`
}
type StepConfiguration ¶
type StepConfiguration interface {
// contains filtered or unexported methods
}
type StepExecution ¶
type StepIntegration ¶
type StepIntegration struct {
Name string `yaml:"name,omitempty"`
}
type StepResource ¶
type StepResource struct {
Name string `yaml:"name,omitempty"`
}
type TechnologyInfo ¶
Click to show internal directories.
Click to hide internal directories.