#59 Add links to openshift and jenkins master
Merged 4 years ago by mkovarik. Opened 4 years ago by mkovarik.
mkovarik/c3i-library improve-description  into  master

@@ -150,7 +150,7 @@ 

            if (env.PR_NO) {

              env.PIPELINE_ID = "c3i-{{ c3i_component }}-pr-${env.PR_NO}-git${env.GIT_COMMIT.take(8)}-${currentBuild.id}"

            } else {

-             env.PIPELINE_ID = "c3i-{{ c3i_component }}-${env.GIT_REPO_REF}-git${env.GIT_COMMIT.take(8)}-${currentBuild.id}"

+             env.PIPELINE_ID = "c3i-{{ c3i_component }}-git${env.GIT_COMMIT.take(8)}-${currentBuild.id}"

            }

            echo "Requesting new OpenShift project ${env.PIPELINE_ID}..."

            openshift.withCluster() {
@@ -162,6 +162,8 @@ 

                )

              }

            }

+           namespaceLink = """<a href="{{ c3i_ocp_host }}/console/project/${env.PIPELINE_ID}">Openshift</a>"""

+           currentBuild.description = "${currentBuild.description}<br/>${namespaceLink}"

          }

        }

        post {

file modified
+6
@@ -1,3 +1,9 @@ 

+ jenkins:

+   markupFormatter:

+     rawHtml:

+       disableSyntaxHighlighting: false

+   scmCheckoutRetryCount: 10

+ 

  unclassified:

    globalCIConfiguration:

      configs:

@@ -124,6 +124,8 @@ 

                )

              }

            }

+           namespaceLink = """<a href="https://paas.psi.redhat.com/console/project/${env.PIPELINE_ID}">Openshift</a>"""

+           currentBuild.description = "${currentBuild.description}<br/>${namespaceLink}"

          }

        }

        post {
@@ -159,6 +161,8 @@ 

                 c3i.waitForPods(script: this, objs: [name: "jenkins"], num: 1)

              }

            }

+           jenkinsLink = """<a href="https://jenkins-${env.PIPELINE_ID}.cloud.paas.psi.redhat.com">Jenkins</a>"""

+           currentBuild.description = "${currentBuild.description}<br/>${jenkinsLink}"

          }

        }

      }

Append description with openshift namespace link and jenkins master
link.
Enable safeHTTP for description on jenkins master.

Build c043548de98b89b6e5c58496c3a1476d5e967408 FAILED!
Rebase or make new commits to rebuild.

Build c043548de98b89b6e5c58496c3a1476d5e967408 FAILED!
Rebase or make new commits to rebuild.

Build c043548de98b89b6e5c58496c3a1476d5e967408 FAILED!
Rebase or make new commits to rebuild.

Build c043548de98b89b6e5c58496c3a1476d5e967408 FAILED!
Rebase or make new commits to rebuild.

rebased onto d8a99b456a0cc374c3e94ef749b2f396b5d84e40

4 years ago

Build d8a99b456a0cc374c3e94ef749b2f396b5d84e40 FAILED!
Rebase or make new commits to rebuild.

Build d8a99b456a0cc374c3e94ef749b2f396b5d84e40 FAILED!
Rebase or make new commits to rebuild.

rebased onto 4bb2c6a

4 years ago

Pull-Request has been merged by mkovarik

4 years ago