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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T09:52:54+00:00 2026-06-14T09:52:54+00:00

I am new to the JENKINS environment. I have to write a script such

  • 0

I am new to the JENKINS environment. I have to write a script such that 10 most recent war files are stored. The newest should be linked to the ROOT.war ( or copied ) is there a plugin which does this or if there isn’t can somebody guide me on how to go about this?

  • 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-14T09:52:56+00:00Added an answer on June 14, 2026 at 9:52 am

    If you are talking about 10 most recent war files that had been built by Jenkins, then you don’t need any special plugins.

    Under your job configuration:

    • Click Discard Old Builds
    • Click Advanced button
    • Under Max # of builds to keep with artifacts, enter 10

    This will keep the full build history, but only the last 10 artifacts will be stored. You can access your artifacts by selecting the build from the Build History on the left and then clicking on Build Artifacts

    Your comment about the root.war is kind of vague. Are you asking how to deploy the latest root.war to the server? If so, please clarify your question. Nonetheless, here is a plugin to deploy .war files:
    https://wiki.jenkins-ci.org/display/JENKINS/Deploy+Plugin

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

Sidebar

Related Questions

I have Jenkins job that calls Python script in it's configuration. Script creates few
Disclaimer: Never used php in my life. New to Unix and Jenkins I have
When setting up a new Hudson/Jenkins instance i run into the problem that i
I am setting up a new server to run Jenkins. I have an existing
Can be set in Jenkins that he did not delete all files, when I
I want to write a simple HTMLUnit test script for Jenkins (former Hudson). INFO:
I have a lot modules for my Jenkins build server. Instead of declaring new
I have recently added a new Jenkins job to my automation suite to run
I am setting up a new jenkins server and am running into a problem.
New to PHP and MySQL, have heard amazing things about this website from Leo

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.