Search code examples
urbancode

Deploy only the changes of a single Git commit


I'm using IBM urban code deploy for code migration and Git is our source versioning system. I need to deploy only those components which are changed as part of a single commi, and not the whole repository.

As an example, for a single commit C1, lets assume there are only two files changed, so I need to extract and deploy only those two files and not the remaining of the branch.

Is there any specific setting at the component level to detect only the changed files and then proceed further?

Is there a way to achieve this?

Thanks, Kumarjit


Solution

  • Kumarjit,

    There is no easy way to do this using GIT plugin delivered with UrbanCode Deploy.

    I suggest doing it this way:

    1) Download all the files from the latest commit to machine 2) Create bash script that will: - List all the files changed in the latest commit - Delete all the downloaded files that are not on the list

    There is no simple way how you can do it without scripting or creating your own plugin.