func (self *ClientMode) IsConfigAcceptable(config *util.Config) bool { if !config.HasCIConnection() { util.GOut(self.Name(), "ERROR: No Jenkins URI defined. Cannot connect to the CI server.") return false } if config.SecretKey == "" && !self.isAuthCredentialsPassedViaCommandline(config) { if config.SecretKey = self.getSecretFromJenkins(config); config.SecretKey == "" { util.GOut(self.Name(), "ERROR: No secret key set for node %v and the attempt to fetch it from Jenkins failed.", config.ClientName) return false } } return true }