I wonder how to prevent building if no change is detected, meaning that no new commit is detected and a duplicated package will be built.
The plan shall fail immediately or notify the user if such condition is met.
You can use plan variables to compare if there're commits between builds
${bamboo.planRepository.1.revision} != ${bamboo.planRepository.1.previousRevision}
So I can depend on this condition in script in the plan?
yes
I wonder whether the previous revision is last successful build or just simply last build regardless of building result. Can I still depend on the condition if last build failed?
It looks like you're new here. Sign in or register to get started.