# Trigger previous pipeline job

**URL:** <https://community.jenkins.io/t/trigger-previous-pipeline-job/13305>\
**Category:** Using Jenkins\
**Created:** [March 13, 2024, 4:15pm UTC](https://community.jenkins.io/t/trigger-previous-pipeline-job/13305 "2024-03-13T16:15:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cdenneen](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/cdenneen/32/7414_2.png) [@cdenneen](https://community.jenkins.io/u/cdenneen)\
**Post date:** [March 13, 2024, 4:15pm UTC](https://community.jenkins.io/t/trigger-previous-pipeline-job/13305/1 "2024-03-13T16:15:19Z")

</div>

We have pipelines with a cleanup stage and job that is manual to be run.  
We want the next build number of that pipeline to when it gets to a successful stage it triggers that cleanup job on the previous build.

How can you trigger the previous build id’s job? All examples of remote trigger jobs are to run a pipeline/job but that would be a “new” build id and not using the values from the buildID we want to cleanup.
