-
Notifications
You must be signed in to change notification settings - Fork 573
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
Detect execution inside VSTS/TFS build agent #57
Conversation
This allows CI systems that are currently unsupported to register the environment variable. Prefixed with `SNYK_` to avoid collision with any existing variables in the build pipeline.
@@ -12,6 +12,7 @@ var ciEnvs = [ | |||
'PHPCI', | |||
'GOCD_SERVER_HOST', | |||
'BUILDKITE', | |||
'TF_BUILD' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jessehouwing you're missing a trailing comma just like in the coding style used before your change (look at the diff)
Thanks @jessehouwing @lirantal ! This is now included in v1.20.0. Outside of this PR's scope due to our internal release process, but you can see the commits on https://github.com/Snyk/snyk/commits/master/lib/is-ci.js |
chore: store travis_after_all.py locally
What does this PR do?
It adds the environment variable to detect execution inside the VSTS/TFS build agent.
Where should the reviewer start?
Check the is-ci package, I just added the
TF_BUILD
variable to detect execution inside VSTS/TFS's build agent.How should this be manually tested?
Create an environment variable
TF_BUILD
set it's value totrue
run
snyk test
you should not see the "You may want to integrate snyk into your CI" message.
Any background context you want to provide?
What are the relevant tickets?
https://github.com/Snyk/snyk/issues/53
https://github.com/Snyk/snyk/issues/58
Screenshots
Additional questions