We execute plan on daily which integrated with Jenkins. This plan is triggered by deployment of various components. Now on daily basis there are no changes in each of the component, Do we have any way by which we can create the package artifact only for those component which have commits present. For components where we donot have commits point we shall skip package artifact and Jenkins should not be deploying the package and should proceed with already deployed code base for that respective component.
We basically want to save time for that repeated deployment which doesnt have any change.
Hi @Ramandeep Singh ,
You can check if there has been a commit in the last 1 day using "git log" command as below and if it returns 0, you can skip artifact creation.
git log --pretty=format: --name-only --since="1 days ago" | wc -l
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.