Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 1.04 KB

README.md

File metadata and controls

31 lines (21 loc) · 1.04 KB

Jenkins Liquibase Plugin

About

Adds Liquibase as an available build step. See Liquibase documentation at http://www.liquibase.org/.

Installation

  • Install the liquibase-runner plugin.
  • Install liquibase on the server where your job will run, including any database driver.
  • Create an empty version of your database on the target server.

Configuration

  • Add your liquibase installation in Manage Jenkins -> Configure System. Note that the jar file containing your database driver should be located in LIQUIBASE_HOME/lib.
  • Once defined, you may select "Invoke Liquibase" as the step for any Jenkins Job.

Tips for use

  • Liquibase's "updateTestingRollback" is the recommended command to use, as it will execute rollback routines in addition to pending changesets.
  • You can use the "dbDoc" command to generate Liquibase's javadoc-like documentation and use the JavaDoc plugin to publish it.