diff --git a/lib/config/env.js b/lib/config/env.js index a38df0b1ea592400ec04878124efeaf09e7610d8..3717fe9a0317fbc65290901467a83172df5c6fcd 100644 --- a/lib/config/env.js +++ b/lib/config/env.js @@ -81,7 +81,7 @@ function getConfig(env) { if (config.platform === 'gitlab') { config.endpoint = env.GITLAB_ENDPOINT; } else if (config.platform === 'vsts') { - config.endpoint = 'vsts'; + config.endpoint = env.VSTS_ENDPOINT; } else if (env.GITHUB_ENDPOINT) { // GitHub is default config.endpoint = env.GITHUB_ENDPOINT; diff --git a/test/config/__snapshots__/env.spec.js.snap b/test/config/__snapshots__/env.spec.js.snap index fd129148eb75549f1cfa908967ea4bcc5e2460f7..9d458454061364693cc52f614093ce4135c992ac 100644 --- a/test/config/__snapshots__/env.spec.js.snap +++ b/test/config/__snapshots__/env.spec.js.snap @@ -91,7 +91,7 @@ Object { exports[`config/env .getConfig(env) supports VSTS 1`] = ` Object { - "endpoint": "vsts", + "endpoint": "a vsts endpoint", "endpoints": Array [ Object { "endpoint": "a vsts endpoint",