InfoHeap
Tech tutorials, tips, tools and more
Navigation
  • Home
  • Tutorials
    • CSS tutorials & examples
    • CSS properties
    • Javascript cookbook
    • Linux/Unix Command Line
    • Mac
    • PHP
      • PHP functions online
      • PHP regex
    • WordPress
  • Online Tools
    • Text utilities
    • Online Lint Tools
search

Jenkis

  • Install Jenkins on Linux
  • Clone a project
  • Setup build failure email
  • Setup build cron
  • Shell - how to continue on error
  • Delete old builds
 
  • Home
  • > Tutorials
  • > CI
  • > Jenkins

Jenkins execute shell – how to continue on error

By admin on Jan 23, 2016

In case can you are using Jenkins shell commands to run tests and are running multiple commands, by default Jenkins exits the comment one shell command fails. To avoid failing on error and continue to next shell command, you can use “set +e” as shown below:

set +e
py.test --junitxml=result_abc.xml test_abc.py
py.test --junitxml=result_ih.xml test_ih.py

Here is screenshot from Jenkin’s configuration interface.
jenkins-multiple-shell-commands-continue-on-error-set-plus-e

Suggested posts:

  1. Install and setup Jenkins on Ubuntu Linux
  2. Jenkins – how to setup build failure email
  3. Jenkins how to clone a project
  4. PHP execute command and capture shell exit status
  5. Jenkins – how to setup build cron
  6. Jenkins – how to delete old builds
  7. Mac terminal – how to close shell on exit
  8. How to specify environment variable for a command on Linux
Share this article: share on facebook share on linkedin tweet this submit to reddit
Posted in Tutorials | Tagged Jenkins, Tutorials

Follow InfoHeap

facebook
twitter
googleplus
  • Browse site
  • Article Topics
  • Article archives
  • Recent Articles
  • Contact Us
  • Omoney
Popular Topics: AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | CSS | CSS cookbook | CSS properties | CSS Pseudo Classes | CSS selectors | CSS3 | CSS3 flexbox | Devops | Git | HTML | HTML5 | Java | Javascript | Javascript cookbook | Javascript DOM | jQuery | Linux | Linux/Unix Command Line | Mac | Mac Command Line | Mysql | Networking | Node.js | Online Tools | PHP | PHP cookbook | PHP Regex | Python | Python array | Python cookbook | SEO | Site Performance | SSH | Ubuntu Linux | Web Development | Webmaster | Wordpress | Wordpress customization | Wordpress How To | Wordpress Mysql Queries

Copyright © 2022 InfoHeap.

Powered by WordPress