Hi,

I have a war project and using jenkins build pipeline.

Pipeline  has two jobs (build and deploy).
ci ===> deploy
1. On start of pipeline build, it builts ci and wait for manual
trigger for deploy.
2. On trigger deploy, once deploy finish, it promotes ci build number
with gold star

I am also using BUILD_SELECTOR parameter for 'deploy' job in case i
want to deploy back some  old build number of ci.
It works very well.


Now let us take some good and bad cases
Case1: (promote status is good)
ci:#13 is built in pipeline view, i triggered deploy job. deploy job
#15 has deployed and promoted ci#13 with gold star.

Any time, "Promotion Status" of ci job shows that
 promote-to-dev #5 promoted build #13 on Fri May 25 11:21:57 EDT 2012

Case 2: (promote status is out of sync)
Now again ci: #15 is build on a commit, it is not shown in pipeline
and now i want to deploy it. I will use deploy build by passing
BUILD_SELECTOR parameter as build number 15 and 'deploy' deploys the
artifact.
Here in this case, as we know upstream job has not triggered
downstream build, so when deploy finishes it is not promoting the ci
#15 and Promotion Status will be out of sync. It still shows
promote-to-dev #5 promoted build #13 on Fri May 25 11:21:57 EDT 2012


Any help will be appreciated to promote a job's build on completion of
other jobs' build. Can groovy post build help me this case.


Thanks
Pawan


Reply via email to