Skip to content

Commit 2c98f1e

Browse files
authored
Remove frogbot-config.yml functionality - use only environment variables (#952)
1 parent eb34e9d commit 2c98f1e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+196
-3107
lines changed

.frogbot/frogbot-config.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

commands.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020

2121
type FrogbotCommand interface {
2222
// Run the command
23-
Run(config utils.RepoAggregator, client vcsclient.VcsClient, frogbotRepoConnection *utils.UrlAccessChecker) error
23+
Run(config utils.Repository, client vcsclient.VcsClient, frogbotRepoConnection *utils.UrlAccessChecker) error
2424
}
2525

2626
func GetCommands() []*clitool.Command {
@@ -78,10 +78,10 @@ func Exec(command FrogbotCommand, commandName string) (err error) {
7878

7979
// Invoke the command interface
8080
log.Info(fmt.Sprintf("Running Frogbot %q command", commandName))
81-
err = command.Run(frogbotDetails.Repositories, frogbotDetails.GitClient, frogbotRepoConnection)
81+
err = command.Run(frogbotDetails.Repository, frogbotDetails.GitClient, frogbotRepoConnection)
8282

8383
if err != nil {
84-
if reportError := xsc.ReportError(frogbotDetails.XrayVersion, frogbotDetails.XscVersion, frogbotDetails.ServerDetails, err, "frogbot", frogbotDetails.Repositories[0].JFrogProjectKey); reportError != nil {
84+
if reportError := xsc.ReportError(frogbotDetails.XrayVersion, frogbotDetails.XscVersion, frogbotDetails.ServerDetails, err, "frogbot", frogbotDetails.Repository.JFrogProjectKey); reportError != nil {
8585
log.Debug(reportError)
8686
}
8787
} else {

docs/templates/jfrog-pipelines/pipelines-dotnet.yml

Lines changed: 0 additions & 207 deletions
This file was deleted.

0 commit comments

Comments
 (0)