Skip to content

Commit

Permalink
Merge pull request #2 from snow-actions/documents
Browse files Browse the repository at this point in the history
Documents
  • Loading branch information
SnowCait authored May 11, 2022
2 parents fbec574 + 9e00567 commit 833eeb4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 44 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* @actions/actions-runtime
* @SnowCait
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: daily
interval: monthly
57 changes: 15 additions & 42 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,75 +1,48 @@
[![Test](https://github.com/snow-actions/composite-action-template/actions/workflows/test.yml/badge.svg)](https://github.com/snow-actions/composite-action-template/actions/workflows/test.yml)
[![Test](https://github.com/snow-actions/setup-jenkins/actions/workflows/test.yml/badge.svg)](https://github.com/snow-actions/setup-jenkins/actions/workflows/test.yml)

# Create a Composite Action
# Setup Jenkins

Click the `Use this template` to bootstrap the creation of a [composite action](https://docs.github.com/en/actions/creating-actions/creating-a-composite-action).:rocket:

This template includes tests, a validation workflow and versioning guidance.

Learn how to use this template at [Wiki](https://github.com/snow-actions/composite-action-template/wiki).
Set up Jenkins container (PoC).
A few features are available.

## Usage

See [action.yml](action.yml)

### Basic

```yml
steps:
- uses: snow-actions/[email protected]
```
### Optional
1. Copy $JENKINS_HOME/jobs/*/config.xml from existing Jenkins to jenkins_home/ in a repository
1. Create a workflow with the jenkins_home path

```yml
steps:
- uses: snow-actions/[email protected]
- uses: actions/checkout@v3
- uses: snow-actions/[email protected]
with:
who-to-greet: Your name
jenkins_home: jenkins_home
```
## Environment variables
| Name | Description | Default | Required |
| - | - | - | - |
| `WHO_TO_GREET` | Who to greet | `World` | no |

## Inputs
See [action.yml](action.yml)
| Name | Description | Default | Required |
| - | - | - | - |
| `who-to-greet` | Who to greet | `World` | yes |

## Outputs

| Name | Description |
| - | - |
| `greet` | The word we greeted you |
| `jenkins_home` | jenkins_home path which will mounted to /var/jenkins_home | `./jenkins_home` | no |
| `jenkins_version` | [Jenkins image](https://hub.docker.com/r/jenkins/jenkins) version | `lts-jdk11` | no |

## Supported

### Runners

- `ubuntu-20.04`
- `ubuntu-18.04`
- `windows-2022`
- `windows-2019`
- `macos-11`
- `macos-10.15`
- `self-hosted`

### Events

- Any
<!--
- `push`
- `pull_request`
-->

## Dependencies

- [actions/cache](https://github.com/actions/cache) >= 3.0.0
- [GitHub CLI](https://cli.github.com/) >= 2.6.0
- [Docker Compose V2](https://docs.docker.com/compose/)
- [Jenkins](https://hub.docker.com/r/jenkins/jenkins)

## Contributing

Expand Down

0 comments on commit 833eeb4

Please sign in to comment.