Jq command to update json file in jenkins

I need a solution for this

I want to update few values in config.json file ,
So i am using jq command to update it.

But the file gets 0kb after the jq command in jenkins workspace
I am not getting how can I achieve this

Hello @kiranmayee and welcome to this community, :wave:

“it doesn’t work” is always hard to remote debug. Try to always include these 3 things.

  1. what did you try? (Code samples, command lines, screenshots, videos, etc)
  2. what did happen? (Error messages, description, outputs, stuff)
  3. what did you expect to happen?

Otherwise, it’s hard for us to get into your context and you’ll have to have someone who is exactly knowledgeable come along.

1 Like