Skip to content

nestor executor TypeError: cannot read property  #52

@morsmodre

Description

@morsmodre

Hi!
I've just discovered nestor and its pretty awesome!
Although, as nothing is is perfect I might have a problem: when I try to run executor, I have the following problems:

$$ nestor executor
/usr/lib/node_modules/nestor/lib/jenkins.js:104
          executor.currentExecutable.url.replace(/.*\/job\//, '').replace(/\/.*/, '') :
                                        ^

TypeError: Cannot read property 'replace' of undefined
    at /usr/lib/node_modules/nestor/lib/jenkins.js:104:41
    at Array.forEach (native)
    at /usr/lib/node_modules/nestor/lib/jenkins.js:97:24
    at Array.forEach (native)
    at Function.executorSummary (/usr/lib/node_modules/nestor/lib/jenkins.js:90:13)
    at resultCb (/usr/lib/node_modules/nestor/lib/cli/jenkins.js:75:28)
    at /usr/lib/node_modules/nestor/node_modules/bagofcli/lib/bagofcli.js:265:7
    at Object.passThroughSuccessJson (/usr/lib/node_modules/nestor/lib/api/util.js:30:3)
    at /usr/lib/node_modules/nestor/node_modules/bagofrequest/lib/bagofrequest.js:86:41
    at done (/usr/lib/node_modules/nestor/node_modules/bagofrequest/lib/bagofrequest.js:149:5)

I can run all other commands I tried work wonders!

Also, I have a variable with JENKINS_URL defined as:

JENKINS_URL="https://me.myself:[email protected]"

and my

$$ nestor --version
1.0.2

Any idea of what's going wrong?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions