use existing global TRAVIS_WORKER_TRAVIS_SITE config instead of provider-specific one
@@ -11,6 +11,7 @@ import (
mathrand "math/rand"
"net/http"
"net/url"
+ "os"
"sort"
"strconv"
"strings"
@@ -342,8 +343,8 @@ func newGCEProvider(cfg *config.ProviderConfig) (Provider, error) {
}
site := "none"
- if cfg.IsSet("TRAVIS_SITE") {
- site = cfg.Get("TRAVIS_SITE")
+ if os.Getenv("TRAVIS_WORKER_TRAVIS_SITE") != "" {
+ site = os.Getenv("TRAVIS_WORKER_TRAVIS_SITE")
}
uploadRetries := defaultGCEUploadRetries
