Can I get the type of build?
I would like to do something different depending on the type of
build. It looks like it is possible to see if it is
scheduled
build or not using the environment
variable:
APPVEYOR_SCHEDULED_BUILD - True if the build runs by scheduler
However, I don't know if a build was created by a commit or via
the NEW BUILD
or RE-BUILD COMMIT
buttons.
vs just a normal commit. Is there any way to differentiate?
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
Support Staff 1 Posted by Feodor Fitsner on 17 Mar, 2015 04:34 AM
Nope at the moment, but I think this could be easily added. Why would you need that - could you please elaborate?
2 Posted by cameron.taggart on 17 Mar, 2015 04:43 AM
I'm going to run FAKE targets based on #hashtags in the commit message. I only want that to be picked up when the build is triggered by a normal push to the repository, not when it is a schedule build or a
new build
or are-build commit
.https://github.com/ctaggart/SourceLink/issues/65
Support Staff 3 Posted by Feodor Fitsner on 17 Mar, 2015 06:13 AM
How about adding two new variables:
APPVEYOR_FORCED_BUILD
(True/False
) - builds started by "New build" button or from the same API.APPVEYOR_RE_BUILD
(True/False
) - build started by "Re-build commit/PR" button of from the same API.4 Posted by cameron.taggart on 17 Mar, 2015 06:16 AM
That would work for me.
Support Staff 5 Posted by Feodor Fitsner on 23 Mar, 2015 10:36 AM
Just to let you know that the update with these two vars was deployed.
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:54 AM.