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

Detect execution inside VSTS/TFS build agent #57

Closed
wants to merge 2 commits into from
Closed

Detect execution inside VSTS/TFS build agent #57

wants to merge 2 commits into from

Conversation

jessehouwing
Copy link
Contributor

@jessehouwing jessehouwing commented Nov 18, 2016

  • Ready for review
  • Follows CONTRIBUTING rules
  • Reviewed by @remy (Snyk internal team)

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 to true
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

@CLAassistant
Copy link

CLAassistant commented Nov 18, 2016

CLA assistant check
All committers have signed the CLA.

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'
Copy link
Member

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)

@adrukh
Copy link
Contributor

adrukh commented Nov 20, 2016

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

@adrukh adrukh closed this Nov 20, 2016
joshje referenced this pull request in joshje/snyk Jan 13, 2017
chore: store travis_after_all.py locally
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

Successfully merging this pull request may close these issues.

4 participants