Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-61830

Pipeline Maven Integration: migrate from H2 to MySQL/PostgreSQL

    Details

    • Similar Issues:

      Description

      Hi,

      We have been using the Pipeline Maven Integration plugin with the default H2 database for a while now and we are considering to switch to MySQL or PostgreSQL (as recommended).

      I've read the plugin wiki that describes how to configure it to use either MySQL or PostgreSQL but I could not find more information regarding how to actually migrate from H2.

      Does the data from the H2 database need to be migrated to the new database or can it be discarded? Would this affect the users in any way?

      Are there any other things to consider before switching to a new DB or can it be done "on the fly"? Any possible issues that might come up while/after the switch?

      Thanks and Best regards,

      Sebastian

        Attachments

          Activity

          Hide
          sapro Sebastian Apro added a comment -

          I've switched from H2 to PostgreSQL. Maybe it will be useful for someone so, mentioning this here.

          Copied the data from H2 to PostgreSQL by exporting it as CSV using the H2 CSVWRITE command and then importing it using the COPY .., FROM PostgreSQL commands.

          I've had to disable all triggers before doing this due to the constraints and re-enabling them after the data was imported.

          Show
          sapro Sebastian Apro added a comment - I've switched from H2 to PostgreSQL. Maybe it will be useful for someone so, mentioning this here. Copied the data from H2 to PostgreSQL by exporting it as CSV using the H2 CSVWRITE command and then importing it using the COPY .., FROM PostgreSQL commands. I've had to disable all triggers before doing this due to the constraints and re-enabling them after the data was imported.

            People

            • Assignee:
              cleclerc Cyrille Le Clerc
              Reporter:
              sapro Sebastian Apro
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: