Getting org.hidetake.groovy.ssh.session.BadExitStatusException: Command returned exit status 1: in Jenkins pipeline execution

Viewed 264

sshCommand remote: remote, command: "activationkey=$(cat testFile.sh | grep ACTIVATION_KEY | awk -v FS="(ACTIVATION_KEY=)" '{print $2}')", sudo: "true"

This throws the error in Jenkins pipeline execution. org.hidetake.groovy.ssh.session.BadExitStatusException: Command returned exit status 1: sudo -S -p 'c72671a0-9c6e-4e35-97a3-f63746cda98b'

0 Answers
Related