Git Product home page Git Product logo

tknwatch's Introduction

tknwatch

Watch a Tekton Pipeline execution and propagate exit code to calling system.

Build

make
cp bin/tknwatch /bin/tknwatch
chmod +x /bin/tknwatch

Usage

Environment Variables

export EVENT_ID=[tekton-triggers-event-id]
# Default:
export TEKTON_API=http://tekton-dashboard.tekton-pipelines:9097
# Optional:
export TEKTON_JWT=ey...

tknwatch

Purpose

Tekton jobs are triggered with a REST API, and are asynchronous.

Tools can call an API after executing a job to check the status and logs.

However for teams that are wrapping various CI/CD, workflow, etc. tools around Tekton API calls for doing various tasks, they will want to propagate the logs and exit code from Tekton back to the calling system.

This CLI watches a PipelineRun, prints all the logs to STDOUT, and then exits with the exit code of the Tekton execution.

This allows any CI/CD or workflow tool to make a JSON REST API call to Tekton, and then propagate all of the execution details back to the workflow tool.

tknwatch's People

Contributors

robertlestak avatar

Watchers

James Cloos avatar

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.