Closed jetzlstorfer closed 4 years ago
Regarding your issue: If the cloudevent does not contain any Keptn Context ID, the API automatically generates one.
Thanks for clarification!
Some input from another project that is triggered tests in a Jenkins pipeline:
def requestBody = """{
| "contenttype": "application/json",
| "data": {
| "deploymentURIPublic": "${deploymentURI}",
| "teststrategy" : "${testStrategy}",
| "project": "${project}",
| "service": "${service}",
| "stage": "${stage}",
| "image" : "${JOB_NAME}",
| "tag" : "${BUILD_NUMBER}",
| "labels": {
| "build" : "${BUILD_NUMBER}",
| "jobname" : "${JOB_NAME}",
| "joburl" : "${BUILD_URL}"
| }
| },
| "source": "performance-service",
| "specversion": "0.2",
| "type": "sh.keptn.events.deployment-finished"
|}
source: https://github.com/keptn-sandbox/keptn-jenkins-library/blob/master/src/sh/keptn/Keptn.groovy
Use the slackbot to trigger tests & evaluation by Keptn and return the result of the evaluation as a result in Slack.
Potential commands:
@keptnBot deployment-finished project service stage teststrategy deploymentURI
@keptnBot start-tests project service stage [testname] [serviceURL]
Actions the bot has to take:
Example payload to send from the bot to Keptn:
Issues to clarify