Code Monkey home page Code Monkey logo

jfr-container-action's Introduction

jfr-container-action

This is a brief introduction of jfr-container-action. It aims at running the Jenkins pipeline inside the predefined container. If you want to learn more about the usage of this action, you can check the central documentation page.

Inputs

Name Type Default Value Description
command String run The command to run the jenkinsfile-runner. The supported commands are run and lint.
jenkinsfile String Jenkinsfile The relative path to Jenkinsfile. You can check the official manual about Jenkinsfile.
pluginstxt String plugins.txt The relative path to plugins list file. You can check the valid plugin input format. You can also refer to the plugins.txt in this repository.
jcasc String N/A The relative path to Jenkins Configuration as Code YAML file. You can refer to the demos provided by configuration-as-code-plugin and learn how to configure the Jenkins instance without using UI page.
isPluginCacheHit boolean false You can choose whether or not to cache new installed plugins outside. If users want to use actions/cache in the workflow, they can give the cache hit status as input in isPluginCacheHit.

Example

You need to declare the image usage of ghcr.io/jenkinsci/jenkinsfile-runner:master at the start of the job. Then you can call this action by using jenkinsci/jfr-container-action@master. Because the runner declares the container environment at the start, other GitHub Actions can also run with jfr-container-action theoretically.

name: CI
on: [push]
jobs:
  jfr-container-action-pipeline:
    runs-on: ubuntu-latest
    container:
      image: ghcr.io/jenkinsci/jenkinsfile-runner:master
    steps:
      - uses: actions/checkout@v2
      - name: Jenkins pipeline in the container
        uses:
          jenkinsci/jfr-container-action@master
        with:
          command: run
          jenkinsfile: Jenkinsfile
          pluginstxt: plugins.txt
          jcasc: jcasc.yml 

jfr-container-action's People

Contributors

cr1t-gym avatar

Stargazers

 avatar  avatar

Watchers

 avatar  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.