How to start rebuild in Jenkins? - jenkins

Is there a way in Jenkins to rebuild the old build jobs ? For instance I want to build job with the build number #712 but when I click the job link's I don't see any build option to restart the build.

Jenkins provide a plugin called "Rebuild plugin" after installing this plugin user allows to rebuild a parametrized build without entering the parameters again.It will also allow the user to edit the parameters before rebuilding.
Is this what you are looking for?

In my (frustrating) experience, the "Build Now" or "Restart" or "Replay" buttons are not there because you didn't login Jenkins!

today, they name it "Restart From Stage"

Related

Do Jenkins multibranch Pipelines allow remote triggers?

I am trying to to allow my multibranch Jenkins Pipeline to be triggered from a script. However each time I check the box and enter my token name and hit save, it does not save the configuration. When I next hit edit configuration the checkmark next to "Trigger builds remotely" is no longer checked.
Is this intentional? Do MultiBranch Pipeline jobs not support remote triggers?
Actually, for now, it is possible to trigger the build of a multibranch pipeline, but the token is simply ignored.
If you go in a branch of your multibranch pipeline and go to "View Configuration", you can try to check "Trigger builds remotely (e.g., from scripts)" and see that it gives you a link like JENKINS_URL/job/<your-multibranch-pipeline>/job/<your-branch>/build.
That sounds a bit like a hack, and you might have authentication problems depending on your setup, but otherwise it does trigger the build with Jenkins 2.30.
I have the same problem. Haven't found a solution yet, but there is a bug report open against it.

Jenkins disable build now

I need to disable "Build now" option on Jenkins, I have a job building a branch and deploy SNAPSHOTs to a server. I need a production Job, that generates only stable versions, using maven release, but for this job I think the best approach is disable "Build Now" option and use only Maven Release. So Can I do this?
Use Authorization strategy plugin to disallow running the job. If configured right - no one will see "Build Now" button. Another options is Job Restrictions plugin, but it looks a bit clumsy or simply not that good for this particular task.

is there a plugin of jenkins can support job build periodically with specific script?

Though in jenkins' job configuration I can control when job build using 'build periodically,but it only can appoint the build time.I hope this job will build according to different script at different time.Is there any suggestion ? Thanks very much!
You can use the Script Trigger Plugin.
https://wiki.jenkins-ci.org/display/JENKINS/ScriptTrigger+Plugin

Jenkins MultiJob Plugin- "Phases" option not available in Build Section

We're using Jenkins for deployment, and would like to use the Jenkins MultiJob plugin to deploy a bunch of services at once. From the description, it looks like this will do exactly what we want. I have the latest version of the plugin (currently 1.9) and all other plugins and Jenkins are up to date.
On the plugin page, it says this: This job can define in the Build section phases that contains one job or more., and it shows a screen print with the ability to configure phases and jobs. But, I don't see that option anywhere after I create a new MultiJob project (which is step one in their process). I have restarted Jenkins in case something wasn't right.
I'm hoping someone can help.
Thanks in advance.
I had reboot Jenkins, and still could not find it.
I finally found it under "Add Build Step" -> MultiJob Phase
OK, figured it out. For some reason, I cannot get the "phases" option to show up on the original MultiJob that I created before restarting Jenkins, although it told me that the feature would be available without a restart.
I created a new MultiJob project (after the Jenkins restart), and I now have the phases option available, and is working.
Hope this helps someone.

Build other projects post-build action missing Trigger radio buttons

I'm running Jenkins version 1.466.12.1 (Jenkins Enterprise 12.11). With a new job I'm trying to add a post-build action to build other projects, but the expect radio buttons for trigger options isn't there.
I have jobs that were already created that have the following options:
Trigger only if build succeeds
Trigger even if the build is unstable
Trigger even if the build fails
Those options don't exist if I create a new job. If I copy a job, then those options exist. I don't recall the version number of the previous Jenkins Enterprise, but it was working then.
I also have a non-enterprise version of Jenkins running on my desktop computer and those Trigger options don't exist on version 1.483.
Did something change with this post-build action? Maybe I forgot a fancy/useful plugin?
JENKINS-16444 was fixed in Jenkins 1.500. The workaround should be to add the build trigger, save the configuration, then go back to the configuration page again and these options should be visible—the problem applies only when first adding the trigger.

Resources