Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

bitbucket commit hook

A use case to work on.

 

1. In this file, to the last row of <property> tag, the value part is a directory path,(app-7-25-0) should be same as changeSet id (last tag of file)

2.All property tag should be define before include file 

3.All include tag after property tag 

 

 

--- a certain xml file content ---

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

   <property name="BU_env_file" value="${envfile}" />

   <property name="release_home" value="${homedir}/GuiderLiqbs" />

   <property name="SIR-X12345A.home" value="${release_home}/schema_change/app-7-21-0/SIR-X12345A" />

   <property name="SIR-N22993A.home" value="${release_home}/schema_change/app-7-21-0/SIR-N22993A" />

   <property name="SIR-Y72345A.home" value="${release_home}/schema_change/app-7-25-0/SIR-Y72345A" />

   

        <include file="${SIR-X12345A.home}/01-backup.xml" />

        <include file="${SIR-N22993A.home}/01-backup.xml" />

        <include file="${SIR-X12345A.home}/02-schema.xml" />

        <include file="${SIR-N22993A.home}/02-schema.xml" />

        <include file="${SIR-X12345A.home}/03-schema-view.xml" />

        <include file="${SIR-N22993A.home}/03-schema-view.xml" />

   

        <include file="${SIR-Y72345A.home}/01-backup.xml" />

        <include file="${SIR-Y72345A.home}/02-schema.xml" />

 

    <changeSet author="MajorVersion" id="app-7-25-0" />

 

</databaseChangeLog>

1 answer

0 votes

Hi!

Sorry, about which file do you explain?

Hi Gonchik,

xyz.xml file 

 

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

   <property name="BU_env_file" value="${envfile}" />

   <property name="release_home" value="${homedir}/GuiderLiqbs" />

   <property name="SIR-X12345A.home" value="${release_home}/schema_change/app-7-21-0/SIR-X12345A" />

   <property name="SIR-N22993A.home" value="${release_home}/schema_change/app-7-21-0/SIR-N22993A" />

   <property name="SIR-Y72345A.home" value="${release_home}/schema_change/app-7-25-0/SIR-Y72345A" />

   

        <include file="${SIR-X12345A.home}/01-backup.xml" />

        <include file="${SIR-N22993A.home}/01-backup.xml" />

        <include file="${SIR-X12345A.home}/02-schema.xml" />

        <include file="${SIR-N22993A.home}/02-schema.xml" />

        <include file="${SIR-X12345A.home}/03-schema-view.xml" />

        <include file="${SIR-N22993A.home}/03-schema-view.xml" />

   

        <include file="${SIR-Y72345A.home}/01-backup.xml" />

        <include file="${SIR-Y72345A.home}/02-schema.xml" />

 

    <changeSet author="MajorVersion" id="app-7-25-0" />

 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,787 views 0 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you