Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't run in promotion #33

Open
fengjiongmax opened this issue Aug 27, 2022 · 3 comments
Open

can't run in promotion #33

fengjiongmax opened this issue Aug 27, 2022 · 3 comments

Comments

@fengjiongmax
Copy link

Hello everyone.

I'm using the gitea-release plugin in my pipeline.

When the steps are not promotion only, the pipeline works fine, the release was created and files uploaded. But when limiting it to run in promotion, I got this error:

msg="The Gitea Release plugin is only available for tags"

To avoid misunderstanding, this is what I've done to get this error.

  1. a tested working pipeline using gitea-release plugin (that the step has no trigger)
  2. add trigger to the step that using gitea-release plugin:
    when:
      event:
      - promote
  1. trigger the build with a tag push(git push origin --tags).
  2. promote the build.

step 1-3 works fine, step 4 got the error.

@aminecmi
Copy link

@fengjiongmax did you find a workaround ?

@fengjiongmax
Copy link
Author

@aminecmi Yeah, since this plugin only accepts tag trigger, use a tag trigger and the error will be gone.

if p.Build.Event != "tag" {
return fmt.Errorf("The Gitea Release plugin is only available for tags")
}

@aminecmi
Copy link

Thanks, @fengjiongmax

I'll find a workaround for my usecase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants