Skip to content

Commit

Permalink
Add support for Jenkins
Browse files Browse the repository at this point in the history
  • Loading branch information
KacperMalachowski committed Jan 2, 2025
1 parent 93b6c91 commit 742717a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/image-builder/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,11 @@ func loadGithubActionsGitState() (GitStateConfig, error) {
}
}

func loadJenksingGitState() (GitStateConfig, error) {
// Load from env specific for Jenkins Jobs
return GitStateConfig{}, fmt.Errorf("Jenkins is not supported as CI system")
}

// DetermineUsedCISystem return CISystem bind to system in which image builder is running or error if unknown
// It is used to avoid getting env variables in multiple parts of image builder
func DetermineUsedCISystem() (CISystem, error) {
Expand Down

0 comments on commit 742717a

Please sign in to comment.