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

error: [jenkins] undefined - how do i run mozaik in debug mode? #27

Open
rijadsacirovic opened this issue Jun 30, 2017 · 2 comments
Open

Comments

@rijadsacirovic
Copy link

rijadsacirovic commented Jun 30, 2017

I tried setting up mozaik-ext-jenkins (using mozaik v1) setup seems alright:

mozaik-demo/
    /config.js
        api
            jenkins: {
                baseUrl: 'https://...',
                basicAuthUser:     'usr',
                basicAuthPassword: 'pwd'
            }
        widgets
            {
                type: 'jenkins.job_builds', job: 'Feature-Branch-Pipeline-SEO',
                columns: 1, rows: 1, x: 0, y: 0
            },

    /App.jsx
        import jenkins from 'mozaik-ext-jenkins';
        Mozaik.Registry.addExtensions({jenkins});

    /server.js
        import jenkins from 'mozaik-ext-jenkins/client';
        mozaik.bus.registerApi('jenkins', jenkins);

Above seems to work, i am however greeted with a empty widget and below output in in stdout:

info: Added subscription 'jenkins.job.Feature-Branch-Pipeline-SEO '
info: Calling 'jenkins.job.Feature-Branch-Pipeline-SEO '
info: [jenkins] fetching from https://.../job/Feature-Branch-Pipeline-SEO/api/json?pretty=true&depth=10&tree=builds[number,duration,result,builtOn,timestamp,id,building]: [object Object]
info: Setting timer for 'jenkins.job.Feature-Branch-Pipeline-SEO '
error: [jenkins] undefined
error: [jenkins] jenkins.job.Feature-Branch-Pipeline-SEO  - status code: undefined

I have suspicion that its my self-signed certificate that is making a fuss, how can i debug this?
Are you aiming at converting the jenkins extension for mozaik v2, pointers on how i can do it myself?

@plouc
Copy link
Owner

plouc commented Jun 30, 2017

Unfortunately I do not have that much time to work on the project for now, and all my projects have been migrated to GitLab-CI instead of jenkins. I think mozaik-ext-gitlab could be a good reference for v2 migration.

@davidlinse
Copy link

@rijadsacirovic I had the same issue. Using a non https:// protocol fixed the issue for me..

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

No branches or pull requests

3 participants