InfoHeap
Tech
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. Bash – variables in double quotes vs without quotes
  2. Python selenium – print browser log (including javascript errors) with phantomjs
  3. PHP – preg_replace back reference (in replacement text) examples
  4. Command line – top IP list from apache access log
  5. Jenkins – how to setup build failure email
  6. HTML attribute contenteditable – make an element editable
  7. AngularJS format date using date filter
  8. Mac – enable and use kubernetes in docker
Share this article: share on facebook share on linkedin tweet this submit to reddit
Posted in Tutorials | Tagged Jenkins, Tutorials
  • Browse content
  • Article Topics
  • Article archives
  • Contact Us
Popular Topics: Android Development | AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | Company results | CSS | CSS cookbook | CSS properties | CSS Pseudo Classes | CSS selectors | CSS3 | CSS3 flexbox | Devops | Git | HTML | HTML5 | Java | Javascript | Javascript cookbook | Javascript DOM | jQuery | Kubernetes | 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 | InfoHeap Money

Copyright © 2025 InfoHeap.

Powered by WordPress