Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6982281
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:16:03+00:00 2026-05-27T18:16:03+00:00

I use Jenkins to run some integration tests on a web appilcation (using cucumber,

  • 0

I use Jenkins to run some integration tests on a web appilcation (using cucumber, capybara and selenium)

Everytime a test fails, a screenshot, the HTML source and a video of the process is saved.

the path structure looks like this:

results/output/<test_name>/<files>

I use the archive artifacts feature of Jenkins to provide the files (pattern: results/output/*/*). It works great.

However as soon as a build succeeds, there are no screenshots/videos etc… and the build fails because Jenkins cannot find the files for the pattern.

Is there a way to tell Jenkins to succeed without having the files present?

I don’t want to do a dirty hack which involves creating an empty folder structure like result/output/success/hooray.txt.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T18:16:03+00:00Added an answer on May 27, 2026 at 6:16 pm

    I ran into a similar issue on a couple of our projects. There are two different ways we have resolved it (on two different builds).

    1) Added a command to the build steps that creates a bogus temporary file if no files already existed.

    In this case, it was meant to collect an output.pdf file that would be generated if the tests failed. I added a build step where if that file did not exist we created a “missing.pdf” file. Then what I collect as artifacts is ‘*.pdf’ from the given directory. This seems to work out pretty well.

    2) On another build we needed to collect a set of files using a glob.

    What we did here was made it so the build step always creates a single empty file in the destination area. That way the glob always matches something.

    Those are the best solutions we have found so far. If you find something better I would love to hear about it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Jenkins to execute a Maven Build which includes an EJB integration test
I'm trying to do set up some Selenium WebTests using PHPUnit, but php is
I'm currently using jenkins/hudson for continuous integration a large mostly C++ project. We have
How I can run Yard server on production server? Maybe use some task? Load
I have a few jobs in Jenkins that use Selenium to modify a database
I use jenkins to build my gwt app, now I want to run a
I'm just getting started using GitHub, Gerrit, and Hudson(Jenkins) together. And I need some
Use case: I've just entered insert mode, and typed some text. Now I want
use Rack::Static, :urls => ['/stylesheets', '/images'], :root => 'public' run proc { |env| [200,
use pthread_create to create limited number of threads running concurrently Successfully compile and run

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.