Git Product home page Git Product logo

jx-app-statusbadge's Introduction

The Jenkins X Status Badge App

The Status Badge App can be installed by running:

jx add app jx-app-statusbadge

shields.io configuration

Use the custom endpoint configuration https://shields.io/endpoint. The url for your build will be:

https://statusbadge-jx.<your domain>/[<org>/]<repo>

e.g. https://statusbadge-jx.jenkins-x.live/jx

To use this in a markdown badge, use:

![Build Status](https://img.shields.io/endpoint?url=https%3A%2F%2Fstatusbadge-jx.jenkins-x.live%2Fjx)

To generate a badge like:

Build Status

Ingress

Depending on your cluster configuration, you may also need to add an ingress configuration for this app to be exposed externally. e.g.

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  annotations:
    kubernetes.io/ingress.class: nginx
  name: statusbadge
spec:
  rules:
  - host: statusbadge{{ .Values.cluster.namespaceSubDomain }}{{ .Values.cluster.domain }}
    http:
      paths:
      - backend:
          serviceName: jenkins-x-status-badge
          servicePort: 80
{{- if .Values.cluster.tls }}
  tls:
  - hosts:
    - statusbadge{{ .Values.cluster.namespaceSubDomain }}{{ .Values.cluster.domain }}
{{- if eq .Values.certmanager.production "true" }}
    secretName: "tls-{{ .Values.cluster.domain | replace "." "-" }}-p"
{{- else }}
    secretName: "tls-{{ .Values.cluster.domain | replace "." "-" }}-s"
{{- end }}
{{- end }}

Service Account

By default, the app will use the default kubernetes service account to query pipeline activities, to override this account use:

status-badge:
  service:
    serviceAccount: <service account>

e.g.

status-badge:
  service:
    serviceAccount: tekton-bot

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.