4

I have several release builds on my jenkins, with parameters such as version, username, etc. If I build them from "Release" button, all of them work. However, if I try to trigger one from another, then the triggered job is run as if I pressed "build now", rather than use "release" variation, with parameters. This isn't what I would like, but I don't know how to "release" one job, and have it trigger release of another, with the same parameters.

I am sorry if I am not clear, I am very clueless about jenkins so far, but this needs to be done and I need help.

gareth_bowles
  • 20,760
  • 5
  • 52
  • 82
Oksana K
  • 155
  • 2
  • 9
  • Hi! Do you have an answer for your question? The answer that you have chosen doesn't really provide any information – user1164061 Aug 02 '16 at 19:21
  • 1
    Possible duplicate of [Trigger "perform maven release" of a jenkins job from another job](http://stackoverflow.com/questions/39605276/trigger-perform-maven-release-of-a-jenkins-job-from-another-job) – k2zinger Dec 06 '16 at 18:16

1 Answers1

-3

You need the Parameterized Trigger plugin for Jenkins; if you don't have this plugin already and don't have administrative access to Jenkins, you'll need to get an admin to help you.

gareth_bowles
  • 20,760
  • 5
  • 52
  • 82
  • I do have it, but whenever I asked for the job to be triggered, from the first one, I get the same type of build that I would if I pressed "build now", and not "release". The prerelease scripts don't get run as a result. – Oksana K Jun 12 '14 at 01:35
  • Sounds like you're not passing the correct parameters to the downstream build. Can you post a screen shot of the "trigger parameterized build" build step ? – gareth_bowles Jun 12 '14 at 16:50
  • I am having the same question, but what are the "correct parameters"? I tried to use the parameters that the second release job requires, but it is still run as normal build, not as a release build. What is the magic to trigger a release build in the second job from the first job? – vlerenc Jul 05 '16 at 04:37
  • 1
    Can @OksanaK or gareth_bowles answer what the parameters should be to trigger a build as a release? This answer is not useful for others trying to solve the same issue – user1164061 Sep 20 '16 at 19:50