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 8769625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T17:23:11+00:00 2026-06-13T17:23:11+00:00

Our commit build (Maven) does not use clean. This makes it considerably faster. But

  • 0

Our commit build (Maven) does not use clean. This makes it considerably faster. But occasionally we get things like a moved or deleted Test class, that stays around and executes and often fails.

Is there a way to configure Jenkins in a way that it tries to rerun the build but doing a mvn clean or clean workspace up front?

  • 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-06-13T17:23:12+00:00Added an answer on June 13, 2026 at 5:23 pm

    How about using “Trigger parameterized build on other projects” post-build action?

    For “Projects to build”, use “$JOB_NAME” which will trigger the job itself
    For “Trigger when build is”, use “Failed” from the drop down
    Then click “Add Parameters” and select “Current Build Parameters
    Finally add “Predefined Parameters”, set something like “REBUILD=TRUE”

    Now you need a build step that executes before SVN checkout
    Install this plugin:
    https://wiki.jenkins-ci.org/display/JENKINS/pre-scm-buildstep

    Now, in the job configuration, under “Build Environment”, there will be a checkmark for “Run buildstep before SCM runs”. Check that
    Then add build step for “Execute shell” or “Execute Windows batch command”, depending on your OS. In that build step, run a simple check for variable “REBUILD” being equal to “TRUE”, again based on your OS shell choice. And if true, clean up workspace from shell by deleting all content there. You can be more specific and delete only the SVN checkout folder if needed.

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

Sidebar

Related Questions

We use Subversion for version control and Jira for tickets. All our commit messages
So guys I tried a commit on our server and end up in this
Our PHP application makes use of json_encode($myObject) a lot, in conjunction with the mustache
Sometimes someone on our team does a git push and breaks the build because
I've been tasked with creating automated notifications for our Ant build scripts. This is
We use Hudson to build our application, and also Sonar to monitor the quality
I have this in my .inf: [Strings] Driver_Name = Our driver, build version 1112
we recently migrated to Maven Build manager & git hub repository for our Java
How can I rewrite our commit history to ensure certain keywords never appear? Background:
Generally,our fixes/patches for any bugs involves changes in multiple files and we will commit

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.