plouc / mozaik-ext-jenkins

Mozaïk jenkins widgets
MIT License
10 stars 26 forks source link

Jenkins auth and pass config #2

Closed tomav closed 8 years ago

tomav commented 8 years ago

Hi @plouc, how are you mate?

Really nice work on Mozaïk. I'm currently trying it because I need an Enterprise dashboard. Just a question regarding the Jenkins configuration. The README says:

{
  //… 
  api: {
    jenkins: {
      baseUrl: 'https://my-jenkins.ci',
      auth: {
        user:     'user',
        password: 'password'
      }
    }
  }
}

But I think it should be:

{
  //… 
  api: {
      jenkins: {
          baseUrl: 'https://my-jenkins.ci',
          basicAuthUser:     'user',
          basicAuthPassword: 'password'
      }
  },  
}

When I use your config, the server doesn't start and I see:

  error: jenkins.basicAuthUser: must be of type String
  jenkins.basicAuthPassword: must be of type String

Let me know, I'll be happy to PR this!

plouc commented 8 years ago

Hi @tomav, fine, thx, I now live in Japan. And you ?

You're right about the config, feel free to make a PR ;)

tomav commented 8 years ago

https://github.com/plouc/mozaik-ext-jenkins/pull/4

MPV commented 8 years ago

Maybe the same fix should be done in the mozaik-demo too? https://github.com/plouc/mozaik-demo/blob/master/config.js#L27-L30