trigger build with variable from gitlab pipeline

xeijin's Avatar

xeijin

23 Jun, 2019 12:34 PM

Hi,

my build uses a config file to drive the behaviour of my build script - occasionally I'd like to specify that it uses a different config file for a build.

I use GitLab and I see that it supports passing a variable when manually initiating a CI/CD build via pipeline:

https://docs.gitlab.com/ee/ci/variables/README.html#environment-var...

This looks perfect but I think AppVeyor uses the webhook integration whereas I imagine I would need to use the API to do this somehow? Is there a better way to achieve what I want?

I did think about simply including something in the commit message, but I often forget to do this, and I often don't make any changes to the files in the repo but still require it to build (as it downloads from external sources which may have been updated.

Repo:
https://gitlab.com/xeijin-dev/werk

AppVeyor Project:
https://ci.appveyor.com/project/xeijin/werk

Thanks.

  1. 1 Posted by Owen McDonnell on 24 Jun, 2019 09:12 PM

    Owen McDonnell's Avatar

    Do you mean that you want manual control over which yaml config file an individual build uses, or the ps1 build script that is invoked?

  2. Ilya Finkelshteyn closed this discussion on 25 Aug, 2019 09:01 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac