Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Include Confluence in a Gitlab ci/cd

David_Tran
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 6, 2019

Hello, 

I am trying to include a curl script in gitlab yaml. I am currently working on the instruction on my own bash for now but I can't seem to make it work, though I could  work using postman.

The API I would like to call is to "create/update an attachment" using the following curl :

curl -D- -u username:password -X POST -H "X-Atlassian-Token: nocheck" -F "file=@C:/directory/file.txt" "htttp:/confluence.mycompany.net/rest/api/content/12345/child/attachment"

And I have an error response "500 internal server error".

Could you help me please ? Thanks in advance.

1 answer

1 accepted

1 vote
Answer accepted
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 7, 2019

Hello David,

Welcome to Atlassian Community. It's nice to meet you.

Your example is using htttp instead of http; this just a typo here or is it in your request as well? That might be causing the internal server error.

Let me know if that helps!

Regards,

Shannon

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events