File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : PR Maven Tests
2+
3+ on :
4+ pull_request :
5+ types : [opened, synchronize, reopened]
6+
7+ permissions :
8+ contents : read
9+
10+ jobs :
11+ test :
12+ name : Run Maven tests
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ - name : Checkout repository
17+ uses : actions/checkout@v4
18+
19+ - name : Set up Java
20+ uses : actions/setup-java@v4
21+ with :
22+ distribution : temurin
23+ java-version : ' 17'
24+ cache : maven
25+
26+ - name : Run test suite
27+ run : mvn -Daether.remoteRepositoryFilter.prefixes=false test
Original file line number Diff line number Diff line change 22* .DS_Store
33* .iml
44work *
5+ ! .github /workflows /
6+ ! .github /workflows /* .yml
57lib *
68target *
79.m2
810docker /jenkins /
9- docker /squid /
11+ docker /squid /
12+ .mvn-debug.log
13+ .m2-local
Original file line number Diff line number Diff line change 1- # Anka Build Plugin
1+ # Anka Jenkins Build Plugin
2+
3+ [ ![ PR Maven Tests] ( https://github.com/jenkinsci/anka-build-plugin/actions/workflows/pr-maven-tests.yml/badge.svg )] ( https://github.com/jenkinsci/anka-build-plugin/actions/workflows/pr-maven-tests.yml )
24
35Usage of this plugin is detailed on our [ Official Documentation] ( https://docs.veertu.com/anka/plugins-and-integrations/controller-+-registry/jenkins/ ) .
46
@@ -12,10 +14,36 @@ Contributors are welcome! Please submit an Issue or PR.
1214
1315### Build
1416
15- See ` build-macos.bash ` for building the plugin.
17+ Build locally with Maven:
18+
19+ ``` bash
20+ mvn -Daether.remoteRepositoryFilter.prefixes=false clean package
21+ ```
22+
23+ If you use Maven 3, you can usually omit ` -Daether.remoteRepositoryFilter.prefixes=false ` .
24+
25+ Or, alternatively, build in Docker:
26+
27+ ``` bash
28+ ./build-docker.bash
29+ ```
30+
31+ ### Test
32+
33+ Run all tests:
34+
35+ ``` bash
36+ mvn -Daether.remoteRepositoryFilter.prefixes=false test
37+ ```
38+
39+ Run a single test class:
40+
41+ ``` bash
42+ mvn -Daether.remoteRepositoryFilter.prefixes=false -Dtest=ConfigurationAsCodeTest test
43+ ```
1644
1745## Release
1846
1947``` bash
2048mvn release:prepare release:perform
21- ```
49+ ```
Original file line number Diff line number Diff line change 22set -exo pipefail
33SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " & > /dev/null && pwd ) "
44cd $SCRIPT_DIR /_ci
5- docker build --no-cache -t anka-build-plugin .
5+ docker build --no-cache -t anka-build-plugin --load .
66cd $SCRIPT_DIR
77docker run \
88--rm --name anka-build-plugin -it \
You can’t perform that action at this time.
0 commit comments