Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Excerpt

Adds Flyway as an available build step. See Flyway documentation at https://flywaydb.org/documentation/

Use Jenkins credentials support, in next release passing username & password as plain text will be removed.

Installation

Install the flyway-runner plugin.
Install flyway on the server where your job will run, including any database driver.

...

Code Block
flywayRunner {
            name('flyway')
            command('migrate')
            url('jdbc:mysql://mysqlserver:3306/mydb')
            locations('filesystem:$WORKSPACE/dbscripts')
            credentialsId('44620c50-1589-4617-a677-7563985e46e1')
          }

Jenkins Pipeline example:

Code Block
flywayrunner installationName: 'flywaytool', flywayCommand: 'migrate', credentialsId: 'bef7d729-6c22-4782-93a1-c3284ed6ebd1',  url: 'jdbc:mysql://192.168.56.1:3306/mysql', locations: '', commandLineArgs: ''

Release 1.9 (15 March 2017)

  • Added Symbols for Jenkins Pipeline support.

Release 1.8 (24 February 2017)

  • Wiki Markup
    \[JENKINS-41995\] Allow environment variables in flywayCommand.

...