Post Build Task to restart the docker container

Hi,

Iam trying to execute the Post build task to restart the docker container.

Iam getting the below error:

Post Build Task: Failure

[CD-Pipeline-for-Dev] $ /bin/sh -xe /tmp/jenkins235628523654074316209.sh

  • sh ‘ssh root@x.x.x.x /opt/test/dev.sh’
    sh: ssh root@x.x.x.x /opt/test/dev.sh: No such file or directory

dev.sh “placed the file path”

Please help me out to resolve this issue.

Thanks
Karthick

Hello @karthick1302 and welcome to this community :wave:

What container are you trying to restart? The one that did the job? Which machine does this container run on?

Hi @poddingue,

Like to restart the user management service, i able to do ssh using private IP address.