The following plugin provides functionality available through Pipeline-compatible steps. Read more about how to integrate steps into your Pipeline in the Steps section of the Pipeline Syntax page.

For a list of other such plugins, see the Pipeline Steps Reference page.

Liquibase Runner

step([$class: 'DropAllBuilder']): Liquibase: Drop everything in database

  • changeLogFile : String (optional)
  • changeLogParameters : String (optional)
  • contexts : String (optional)
    Liquibase contexts to execute under.
  • credentialsId : String (optional)
  • installationName : String (optional)
  • labels : String (optional)
    Liquibase labels to execute
  • liquibasePropertiesPath : String (optional)
    A liquibase.properties file can be used for default values. Any of the below settings will override what is in this file. This file should be relative to a directory listed in the "Resource directories" section.
  • password : String (optional)
  • resourceDirectories : String (optional)
    Leave blank for workspace root. May be relative to workspace or an absolute path.
  • url : String (optional)
    example: jdbc:mysql://localhost:3306/sampledb. The JDBC driver must be available in the "lib" directory of your Liquibase installation
  • username : String (optional)

step([$class: 'RawCliBuilder']): Liquibase: CLI Command

  • changeLogFile : String (optional)
  • changeLogParameters : String (optional)
  • commandArguments : String (optional)
  • contexts : String (optional)
    Liquibase contexts to execute under.
  • credentialsId : String (optional)
  • installationName : String (optional)
  • labels : String (optional)
    Liquibase labels to execute
  • liquibasePropertiesPath : String (optional)
    A liquibase.properties file can be used for default values. Any of the below settings will override what is in this file. This file should be relative to a directory listed in the "Resource directories" section.
  • password : String (optional)
  • resourceDirectories : String (optional)
    Leave blank for workspace root. May be relative to workspace or an absolute path.
  • url : String (optional)
    example: jdbc:mysql://localhost:3306/sampledb. The JDBC driver must be available in the "lib" directory of your Liquibase installation
  • username : String (optional)

step([$class: 'RollbackBuilder']): Liquibase: Roll Back Changes

  • changeLogFile : String (optional)
  • changeLogParameters : String (optional)
  • contexts : String (optional)
    Liquibase contexts to execute under.
  • credentialsId : String (optional)
  • installationName : String (optional)
  • labels : String (optional)
    Liquibase labels to execute
  • liquibasePropertiesPath : String (optional)
    A liquibase.properties file can be used for default values. Any of the below settings will override what is in this file. This file should be relative to a directory listed in the "Resource directories" section.
  • numberOfChangesetsToRollback : String (optional)
  • password : String (optional)
  • resourceDirectories : String (optional)
    Leave blank for workspace root. May be relative to workspace or an absolute path.
  • rollbackLastHours : String (optional)
  • rollbackToDate : String (optional)
  • rollbackToTag : String (optional)
  • rollbackType : String (optional)
  • url : String (optional)
    example: jdbc:mysql://localhost:3306/sampledb. The JDBC driver must be available in the "lib" directory of your Liquibase installation
  • username : String (optional)

step([$class: 'TagBuilder']): Liquibase: Tag Database

  • changeLogFile : String (optional)
  • changeLogParameters : String (optional)
  • contexts : String (optional)
    Liquibase contexts to execute under.
  • credentialsId : String (optional)
  • installationName : String (optional)
  • labels : String (optional)
    Liquibase labels to execute
  • liquibasePropertiesPath : String (optional)
    A liquibase.properties file can be used for default values. Any of the below settings will override what is in this file. This file should be relative to a directory listed in the "Resource directories" section.
  • password : String (optional)
  • resourceDirectories : String (optional)
    Leave blank for workspace root. May be relative to workspace or an absolute path.
  • tag : String (optional)
    The tag to apply to the database. If the tag already exists, it will be moved the current datatabase state.

    If left empty, an auto-generated tag based on the build number will be applied
  • url : String (optional)
    example: jdbc:mysql://localhost:3306/sampledb. The JDBC driver must be available in the "lib" directory of your Liquibase installation
  • username : String (optional)

step([$class: 'UpdateBuilder']): Liquibase: Update Database

  • changeLogFile : String (optional)
  • changeLogParameters : String (optional)
  • contexts : String (optional)
    Liquibase contexts to execute under.
  • credentialsId : String (optional)
  • installationName : String (optional)
  • labels : String (optional)
    Liquibase labels to execute
  • liquibasePropertiesPath : String (optional)
    A liquibase.properties file can be used for default values. Any of the below settings will override what is in this file. This file should be relative to a directory listed in the "Resource directories" section.
  • password : String (optional)
  • resourceDirectories : String (optional)
    Leave blank for workspace root. May be relative to workspace or an absolute path.
  • url : String (optional)
    example: jdbc:mysql://localhost:3306/sampledb. The JDBC driver must be available in the "lib" directory of your Liquibase installation
  • username : String (optional)

Was this page helpful?

Please submit your feedback about this page through this quick form.

Alternatively, if you don't wish to complete the quick form, you can simply indicate if you found this page helpful?

    


See existing feedback here.