You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should be properly parsed and binded. However, Spinnaker throws the following error:
Webhook failed: Expected artifacts in webhook response couldn't be parsed: com.jayway.jsonpath.PathNotFoundException: Expected to find an object with property ['artifacts'] in path $ but found 'java.lang.String'. This is not a json object according to the JsonProvider: 'com.jayway.jsonpath.spi.json.JsonSmartJsonProvider'.
Steps to Reproduce:
Setup orca with the following webhook
preconfigured:
- label: Github - Find Artifact From File
type: embedArtifacts
enabled: true
description: Embed Artifact into pipeline from a JSON file in Github
method: GET
url: https://raw.githubusercontent.com/SOME_REPO/${parameterValues["repo"]}/${parameterValues["branch"]}/${parameterValues["filePath"]}
customHeaders:
Authorization:
- Basic REPLACE_ME
parameters:
- label: Git Branch
name: branch
description: The branch to pull the file from on github
defaultValue: ''
type: string
- label: File Path
name: filePath
description: The path to the file in github
defaultValue: ''
type: string
- label: Git Repo
name: repo
description: The Git repository containing the file to read
defaultValue: ''
type: string
In your repo create a file for File Path parameter and populate it as mentioned in Description
Set up pipeline with proper Webhook parameters. In produces artifacts section use name mentioned in description in artifact definition
Run pipeline
Observe the error
Additional Details
This issue appears starting from release 1.23.0, previous versions work with no issues.
This file is parsed with no issues if trying to copy code locally or with other tools. Seems like spinnaker is changing the response somehow
The text was updated successfully, but these errors were encountered:
This issue is tagged as 'stale' and hasn't been updated in 45 days, so we are tagging it as 'to-be-closed'. It will be closed in 45 days unless updates are made. If you want to remove this label, comment:
Issue Summary:
Orca fails to bind artifact from custom github webhook, which pulls json from github
Cloud Provider(s):
Kubernetes
Environment:
Spinnaker 1.23.0 deployed with helm chart
Feature Area:
Orca
Description:
When Invoking custom webhook which pulls json from github, artifact defined in json
Should be properly parsed and binded. However, Spinnaker throws the following error:
Steps to Reproduce:
Additional Details
This issue appears starting from release 1.23.0, previous versions work with no issues.
This file is parsed with no issues if trying to copy code locally or with other tools. Seems like spinnaker is changing the response somehow
The text was updated successfully, but these errors were encountered: