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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T02:40:27+00:00 2026-06-06T02:40:27+00:00

I want to use Jenkins for creating RPM packages to deploy code and scripts

  • 0

I want to use Jenkins for creating RPM packages to deploy code and scripts onto a Linux redhat machine(s)
So the applications are a mix of technologies (no compiling needed) i just need to package up the applications deploy them to the correct location restart apache

Would anybody have some instructions on how to do these steps for a total Newbie:

Some questions:

  1. Do i need to install jenkins on a local linux machine if im going to be creating RPM’s that will be deployed on to linux redhat machine (i was hoping to install jenkins on windows)

  2. Does anybody have a example of creating a package out of a local folder (no source control for the moment)
    I want to just specify the directory of where to take the code from and specify where to deploy the code to on a machine the rpm is installed on

  3. On the destination machine i want to run something like
    yum -install mypackage-version12.rpm
    and it will install the code/scripts to the specified directory and restart apache
    i need an example of this also.

Thanks

  • 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-06T02:40:28+00:00Added an answer on June 6, 2026 at 2:40 am
    • You can install Jenkins on a different machine, but you generally must have a Jenkins “node”, “slave”, “agent” installed on a machine that can generate RPM packages.

    • Running each step of the RPM package setup is putting all the steps to build within Jenkins. It works much better if you extend your build system to build the RPM, and have Jenkins do what it does best, manage the build (schedule, etc), not micro-manage the build (do the steps).

    Depending on what you currently have as your build system, this might include ant directives to setup the rpm build tree, copy in the .spec file, and a executable call to rpmbuild.

    • Jenkins can easily call a post-build task to do this, or you might want to configure a mini “fake” project that does the update, depending on tastes.

    As an aside, for a yum command to work without using the –localinstall option, you will need to have a web server set up, the new RPM copied to the right folder on the web server, and the indexing files rebuilt (repobuild is the script to do so, if I recall correctly).

    On the client machine (where the package will be installed), you will need to have a yum configuration that directs the client machine to include the web server as one of the known yum repositories.

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

Sidebar

Related Questions

I want use this 1 for using Bar code or QR code scanner. I
I don't want use old Visual Basic methods in my code, and I'm confused
I have Jenkins installed in Linux and I want to run the build(s) under
Where are the Gnulib files in Linux? I want use lib like safe-read, mbchar,
I want that my jenkins job will use env variables from a properties file.
I use jenkins to build my gwt app, now I want to run a
I want use variables from inherits in asp code My code looks like that
I want use math operations in XAML code but I dont know how?
I want to use a NIS account to run jenkins nodes but keep running
I want use BYTE_ORDER macro in my Xcode project but i can't because i

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.