| I think I found the culprit
/**
* Extracts the key to store the data under out of the object
*
* Default impl uses the self href link in BlueOcean objects.
*
* @param {object} data Data to be stored once it has been passed through
* [@link bunkerMapper]
* @returns {any} The key for the store.
*/
_createClass(BunkerService, [{
key: 'bunkerKey',
value: function bunkerKey(data) {
return data._links.self.href; <<<< data does not have _links
}
This is the value of the variable data at this point
{
"_class": "io.jenkins.blueocean.rest.impl.pipeline.PipelineRunImpl",
"actions": [],
"artifactsZipFile": null,
"causeOfBlockage": null,
"causes": [{
"_class": "io.jenkins.blueocean.service.embedded.rest.AbstractRunImpl$BlueCauseImpl",
"shortDescription": "Pull request #1466 updated",
"_capabilities": ["io.jenkins.blueocean.rest.model.BlueRun$BlueCause"]
}],
"changeSet": [{
"_class": "io.jenkins.blueocean.service.embedded.rest.ChangeSetResource",
"_links": {
"self": {
"_class": "io.jenkins.blueocean.rest.hal.Link",
"href": "/blue/rest/organizations/jenkins/pipelines/apm-server/pipelines/apm-server-mbp/branches/PR-1466/runs/79/changeset/fd033f4110e33a6162e3054ebd0f60c542bbff57/"
}
},
"affectedPaths": ["script/jenkins/intake.sh"],
"author": {
"_class": "io.jenkins.blueocean.service.embedded.rest.UserImpl",
"_links": {
"favorites": {
"_class": "io.jenkins.blueocean.rest.hal.Link",
"href": "/blue/rest/users/kuisathaverat/favorites/"
},
"self": {
"_class": "io.jenkins.blueocean.rest.hal.Link",
"href": "/blue/rest/users/kuisathaverat/"
}
},
"avatar": null,
"email": "kuisat...@yahoo.com",
"fullName": "Ivan Fernandez Calvo",
"id": "kuisathaverat",
"permission": {
"_class": "io.jenkins.blueocean.service.embedded.rest.UserImpl$1",
"administrator": false,
"credential": {
"create": false,
"view": false,
"delete": false,
"update": false,
"manageDomains": false
},
"pipeline": {
"create": false,
"read": true,
"start": true,
"stop": true,
"configure": false
},
"_capabilities": ["io.jenkins.blueocean.rest.model.BlueUserPermission"]
},
"_capabilities": ["io.jenkins.blueocean.rest.model.BlueUser", "io.jenkins.blueocean.rest.model.Resource"]
},
"commitId": "fd033f4110e33a6162e3054ebd0f60c542bbff57",
"issues": [],
"msg": "update goimports before run intake",
"timestamp": "2018-11-29T16:46:03.000+0000",
"url": "https://github.com/kuisathaverat/apm-server/commit/fd033f4110e33a6162e3054ebd0f60c542bbff57",
"_capabilities": ["io.jenkins.blueocean.rest.model.BlueChangeSetEntry", "io.jenkins.blueocean.rest.model.Resource"]
}],
"description": null,
"durationInMillis": 198873,
"enQueueTime": "2018-11-29T16:46:20.066+0000",
"endTime": "2018-11-29T16:49:38.949+0000",
"estimatedDurationInMillis": 654167,
"id": "79",
"name": null,
"organization": "jenkins",
"pipeline": "PR-1466",
"replayable": true,
"result": "ABORTED",
"runSummary": "aborted",
"startTime": "2018-11-29T16:46:20.076+0000",
"state": "FINISHED",
"type": "WorkflowRun",
"branch": {
"isPrimary": false,
"issues": [],
"url": "https://github.com/elastic/apm-server/pull/1466"
},
"commitId": "fd033f4110e33a6162e3054ebd0f60c542bbff57+c706112e1294e643b2050dceeade0b5c87a0f2bb",
"commitUrl": null,
"pullRequest": {
"author": "kuisathaverat",
"id": "1466",
"title": "[APM-CI] APM Server pipeline initial version",
"url": "https://github.com/elastic/apm-server/pull/1466"
},
"_capabilities": ["org.jenkinsci.plugins.workflow.job.WorkflowRun", "io.jenkins.blueocean.service.embedded.rest.AbstractRunImpl", "io.jenkins.blueocean.rest.model.BlueRun", "io.jenkins.blueocean.rest.model.Resource"]
}
|