Skip to content

Commit

Permalink
Move jenkins pipeline library
Browse files Browse the repository at this point in the history
  • Loading branch information
jstastny-cz committed Dec 4, 2023
1 parent c543e32 commit b8b6334
Show file tree
Hide file tree
Showing 54 changed files with 13,637 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Maven Tests

on:
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 1.8
uses: actions/setup-java@v3
with:
java-version: 8
distribution: temurin
cache: maven
- name: Build with Maven
run: mvn -B test --file pom.xml
20 changes: 20 additions & 0 deletions jenkins-pipeline-shared-libraries/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Jenkins Pipeline Shared Libraries

This repository contains shared libraries used across different KIE Jenkins pipeline scripts.

# Development
Your scripts should be located in `/vars` folder.

## How to cover with unit tests
Once your groovy methods/script files are implemented you should cover them with Spock tests.
Those tests are located in `/test/vars` folder. Remember you should add Jenkins plugins used by the script as a dependency in the `pom.xml` file in case it is not present, like

```xml
<dependency>
<!-- provides configFileProvider() and configFile() steps -->
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>config-file-provider</artifactId>
<version>3.6.2</version>
<scope>test</scope>
</dependency>
```
4 changes: 4 additions & 0 deletions jenkins-pipeline-shared-libraries/file.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
incubator-kie-issues#123: blah
kie-issues-123: blah
[incubator-kie-issues-123] blah
[kie-issues#123] blah
Loading

0 comments on commit b8b6334

Please sign in to comment.