Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing Tag name as Gradle parameter to rollback commands does not work #164

Open
UlrichLohrmann opened this issue Jan 3, 2025 · 0 comments

Comments

@UlrichLohrmann
Copy link

I have the following activity configured:

schemaInit {
    searchPath "${projectDir}"
    changelogFile "db-changelog/changelog-master.xml"
    url "jdbc:postgresql://${System.env.PG_HOST}:${System.env.PG_PORT}/db_flw"
    username "..."
    password "${System.env.DB_ADMIN_PASSWORD}"
}

I want to run a liquibase rollbackSql and specify the tag for the rollback using Gradle property via commandline. So I execute

$ gradlew rollbackSql -PliquibaseTag=01.00 -PliquibaseRunList='schemaInit'

and get the following error message:

The Liquibase 'rollback-sql' command requires a value

It seems that the parameter -PliquibaseRunList='schemaInit' is forwarded to liquibase whereas the parameter -PliquibaseTag=01.00 is not.

Any help is appreciated.

Thanks in advance
Ulrich

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant