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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T19:35:42+00:00 2026-05-31T19:35:42+00:00

I have a bash script that looks like this: #!/bin/sh previousRelease=`git describe –tags –match

  • 0

I have a bash script that looks like this:

#!/bin/sh
previousRelease=`git describe --tags --match "release*" origin/release`
git diff --name-status $previousRelease..origin/release

Is there a way of having Jenkins execute it as part of a build process? The intention is to see a list of files that have changed since the last release, as a manual step to confirm that the release should go up. The user who has triggered the build needs to read the output and then confirm the release should go ahead.

  • 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-31T19:35:43+00:00Added an answer on May 31, 2026 at 7:35 pm

    Most things are possible to do in Jenkins but if it is the best way of doing it is another question.

    To solve this I would use an approach with two jobs one for checking the diff (hock that one on to the git repository) The other job for doing the actual release.

    The check diff job

    1 Create a job of the type freestyle project with build type “execute shell” and run your script above. Add some prints at the end of the log to create a clickable link to manually start the release job with current git-id as argument.

    Just printing an URL in console output will make it clickable so:

    export GITID=`git log -n| grep and sed or awk something`
    echo http://jenkins.example.com:8888/job/releaseme/buildWithParameters?label=$GITID&parameters=build
    

    will create the accept changes user interface you requested.

    The release job

    2 Create another job(above I assumed you named it releaseme) let the job have one parameter as argument (tick “This build is parameterized”) make let the argument be the git-id you would like to release. Create your release script in this job.

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

Sidebar

Related Questions

I have a script that looks like this #!/bin/bash function something() { echo hello
I have a simple test bash script which looks like that: #!/bin/bash cmd=rsync -rv
I have an init.d script that looks like: #!/bin/bash # chkconfig 345 85 60
I have a number of shell scripts that all look like this: #!/bin/bash cd
I have a crontab that looks like: SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root HOME=/ 0-59 * *
I have a really weird problem with /bin/bash and a script that uses printf
In my code I have a query that looks like this: $load_query = LOAD
I have cron entry that looks like this which works: (passing in 5 inputs)
I have a bash script file which starts with a function definition, like this:
I have a that looks like this: I, [2009-03-04T15:03:25.502546 #17925] INFO -- : [8541,

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.