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

  • Home
  • SEARCH
  • 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 8416221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T01:41:09+00:00 2026-06-10T01:41:09+00:00

We are going to be using Ivy with Ant, and we’ll have Jenkins do

  • 0

We are going to be using Ivy with Ant, and we’ll have Jenkins do our builds. I originally thought that having Jenkins do a <ivy:cleancache/> before running a build would be a good idea. (It would be part of the mandatory “clean” target).

However, I now see that <ivy:cleancache> doesn’t simply clean up stuff from <ivy:cachepath>, but really removes the entire $HOME/.ivy/cache directory.

My concern is that if Jenkins does a <ivy:cleancache> on all builds before they start, it will interfere with other builds that Jenkins could be executing.

Is doing an <ivy:cleancache> a good idea, especially if a single user might be doing multiple builds at the same time?

In fact, what happens when you do a <ivy:cachepath pathid="compile.path"/> in multiple projects? Does this also affect something like Jenkins? Will Jenkins become confused if multiple builds are building the compile.cachepath at the same time?

  • 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-10T01:41:10+00:00Added an answer on June 10, 2026 at 1:41 am

    In my opinion running the ivy cleancache task with every build is overkill and does away of one of the main benefits of using ivy, intelligent downloading of 3rd party dependencies.

    Having said that as stated in the following related Maven question, all caches can become dirty and should be periodically purged:

    When is it safe to delete the local Maven repository?

    Couple of recommendations:

    Use dedicated Jenkins job(s) to purge ivy cache

    My first recommendation is to create a periodic Jenkins job that calls the following clean-all target in your build:

    <target name="clean-all" depends="clean">
       <ivy:cleancache/>
    </target>
    

    This ensures that Jenkins decides when the cache is purged and you can schedule it to happen outside of the normal build times (for example 2am on 1st of every month)

    Isolate each project by using multiple caches

    My second recommendation increases the isolation between your project builds. Configure each project to have it’s own private cache, using the caches directive. in you ivy settings file.

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

Sidebar

Related Questions

I have a working line drawing code going using DrawUserPrimitives I have set up
As Android Java projects use Ant as a build tool, using Ivy for dependency
I'm creating a PowerShell script that I'm going to execute using Start-Job . The
I'm probably going to be using NService bus, I understand that the dispatcher of
I am going to be using iTextSharp to insert data to a PDF that
So I'm having some issues with a method I'm going to be using to
I'm going mad using navigation controllers on the iPhone. I have an app, with
I have something weird going on with using UINib, although I suspect the real
I am using JDK 7 and Netbeans IDE 7.1.2. Going through Using string in
I was going to start using === (triple equals, strict comparison) all the time

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.