Artifact creation issue with API Call #11948
-
Hey, I encounter some issues with the artifact creation in a job using an API call. Here is the sample of API Query:
Here is the error message:
Here is the server configuration for the artifact settings: I've mostly use the same settings in a configuration file and that's one works:
The only thing that change is the name of the artifact. Does the new name is too long ? Otherwise, I can't understand what am I doing wrong here. Thank you for the help |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
There isn’t really a name of the artifact per se. The source is different which means GoCd is looking to archive everything at /snake-3740-09042023354. Are you sure that’s the right location relative to the pipeline workspace folder? You normally wouldn’t want to refer to the pipeline name inside the “source”. This is a relative location inside the pipeline’s working area. Presumably your script terraform.sh creates something at the folder vm_info the same as your “working” pipeline and the source dir needs to have the same name not something specific to the pipeline? |
Beta Was this translation helpful? Give feedback.
There isn’t really a name of the artifact per se. The source is different which means GoCd is looking to archive everything at /snake-3740-09042023354. Are you sure that’s the right location relative to the pipeline workspace folder? You normally wouldn’t want to refer to the pipeline name inside the “source”. This is a relative location inside the pipeline’s working area.
Presumably your script terraform.sh creates something at the folder vm_info the same as your “working” pipeline and the source dir needs to have the same name not something specific to the pipeline?