Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error from Jenkinsfiles_part_1 #42

Open
Azher-Khaleel opened this issue Apr 13, 2020 · 1 comment
Open

Error from Jenkinsfiles_part_1 #42

Azher-Khaleel opened this issue Apr 13, 2020 · 1 comment

Comments

@Azher-Khaleel
Copy link

Hi Sandro,

When I build the pipeline using section_4/code/cd_pipleline/Jenkinsfiles_part_1, I get the following error. Please advise.

  • docker ps -f name=app_dev -q
  • xargs --no-run-if-empty docker stop
    xargs: illegal option -- -
    usage: xargs [-0opt] [-E eofstr] [-I replstr [-R replacements]] [-J replstr]
    [-L number] [-n number [-x]] [-P maxprocs] [-s size]
    [utility [argument ...]]

Thanks,
Azher

@yash-nigam
Copy link

I also got same issue, This can be solved by modifying section_4/code/cd_pipeline/Jenkinsfile_part_1 file

sh "docker ps -f name=${containerName} -q | xargs docker stop"
sh "docker ps -a -f name=${containerName} -q | xargs docker rm"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants