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

Integrate database plugin to pipeline-maven-plugin

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • pipeline-maven-plugin
    • None
    • any

      Rely on 'database' plugin instead of jdbc configuration (like is done on the junit plugin)

      To have configration like this

        pipelineMaven:
          storage: "database"
      

      Instead of

        pipelineMaven:
          daoClass: "org.jenkinsci.plugins.pipeline.maven.db.PipelineMavenPluginPostgreSqlDao"
          globalTraceability: false
          jdbcCredentialsId: "postgresql"
          jdbcUrl: "jdbc:postgresql://postgresql-jenkins:5432/jenkins"
      

      `

      Global configuration is done from 'Manage System'

      Current maven config is done from 'Tools'

      A good example is the junit plugin

        junitTestResultStorage:
          storage: "database"
      

      And it's UI configuration

      Regards,

        1. junit.PNG
          junit.PNG
          18 kB
        2. image-2023-09-19-13-41-48-272.png
          image-2023-09-19-13-41-48-272.png
          28 kB
        3. jdbc.PNG
          jdbc.PNG
          21 kB
        4. global_database.PNG
          global_database.PNG
          24 kB

          [JENKINS-72038] Integrate database plugin to pipeline-maven-plugin

          Valentin Delaye created issue -
          Valentin Delaye made changes -
          Description Original: Rely on 'database' plugin instead of jdbc configuration (like is done on the junit plugin)

          To have configration like this

          {code}
            pipelineMaven:
              storage: "database"
          {code}

          Instead of

          {code}
            pipelineMaven:
              daoClass: "org.jenkinsci.plugins.pipeline.maven.db.PipelineMavenPluginPostgreSqlDao"
              globalTraceability: false
              jdbcCredentialsId: "postgresql"
              jdbcUrl: "jdbc:postgresql://postgresql-jenkins:5432/jenkins"
          {code}`

          Global configuration is done from 'Manage System'

           !global_database.PNG|thumbnail!

          Current maven config is done from 'Tools'

           !jdbc.PNG|thumbnail!

          A good example is the junit plugin

          ```
            junitTestResultStorage:
              storage: "database"
          ```

          And it's UI configuration

           !image-2023-09-19-13-41-48-272.png|thumbnail!

          Regards,
          New: Rely on 'database' plugin instead of jdbc configuration (like is done on the junit plugin)

          To have configration like this

          {code}
            pipelineMaven:
              storage: "database"
          {code}

          Instead of

          {code}
            pipelineMaven:
              daoClass: "org.jenkinsci.plugins.pipeline.maven.db.PipelineMavenPluginPostgreSqlDao"
              globalTraceability: false
              jdbcCredentialsId: "postgresql"
              jdbcUrl: "jdbc:postgresql://postgresql-jenkins:5432/jenkins"
          {code}`

          Global configuration is done from 'Manage System'

           !global_database.PNG|thumbnail!

          Current maven config is done from 'Tools'

           !jdbc.PNG|thumbnail!

          A good example is the junit plugin

          {code}
            junitTestResultStorage:
              storage: "database"
          {code}

          And it's UI configuration

           !image-2023-09-19-13-41-48-272.png|thumbnail!

          Regards,
          Benoit made changes -
          Link New: This issue blocks JENKINS-70406 [ JENKINS-70406 ]
          Benoit made changes -
          Link New: This issue blocks JENKINS-71761 [ JENKINS-71761 ]

            Unassigned Unassigned
            jonesbusy Valentin Delaye
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: