Update CI Components authored by Slominski, Ryan's avatar Slominski, Ryan
# CI Components # CI Components
## Overview
A reusable and configurable automated build and test job for your project.
## Usage
1. Choose a component based on project language: 1. Choose a component based on project language:
- [Java build/test via Gradle](https://code.jlab.org/accelerator/iac/release-workflow/-/blob/main/templates/ci-gradle.yml) - `component: $CI_SERVER_FQDN/accelerator/iac/release-workflow/ci-gradle@v1` - [Java build/test via Gradle](https://code.jlab.org/accelerator/iac/release-workflow/-/blob/main/templates/ci-gradle.yml) - `component: $CI_SERVER_FQDN/accelerator/iac/release-workflow/ci-gradle@v1`
...@@ -10,4 +15,26 @@ ...@@ -10,4 +15,26 @@
``` ```
stages: stages:
- test - test
``` ```
\ No newline at end of file
3. [Control when the job should run](https://docs.gitlab.com/ci/jobs/job_control/) via [rules](https://docs.gitlab.com/ci/yaml/#rules). By default, the job will run on any push to GitLab. Here are some common options:
**Default**
(same no rules)
```
rules:
- when: always
```
**On src file change**
```
rules:
- changes:
- source/**/*
```
\ No newline at end of file