How to view shell script logs in jenkins console output

Viewed 30

I'm running some shell scripts in a remote server using publish over SSH plugin in jenkins. I want to publish the script logs in jenkins. Currently jenkins logs are just displaying below messages.

SSH: Connecting from host [US*****]
SSH: Connecting with configuration [abc*****] ...
SSH: Disconnecting configuration [abc*****] ...
SSH: Transferred 1 file(s)

Any Idea how to configure that ?

1 Answers

Try adding -x option for shell script which prints debug logs.

Related