Skip to content
This repository was archived by the owner on Jun 19, 2024. It is now read-only.

Commit 81fa0c2

Browse files
committedJul 26, 2023
Testing info
1 parent 4f1230c commit 81fa0c2

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
 

‎TESTING.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# How to test
2+
3+
The plugin can be tested by using Docker containers.
4+
5+
Compile & make the plugin available via HTTP port 8011 on your local machine:
6+
7+
```bash
8+
~ mvn -DskipTests clean package && \
9+
podman run -p8011:80 -v/home/stephan/git/github/go-gchat-notifier-plugin/target/go-gchat-notifier-plugin.jar:/usr/share/nginx/html/go-gchat-notifier-plugin.jar nginx:1.19.9
10+
```
11+
12+
Start up GoCD with TCP 8153 and let it download the plugin from the nginx above:
13+
14+
```bash
15+
~ podman run -eGOCD_PLUGIN_INSTALL_a-plugin=http://$YOUR_IP:8011/go-gchat-notifier-plugin.jar -p8153:8153 gocd/gocd-server:v23.2.0
16+
```
17+
18+
`$YOUR_IP` needs to be replaced with an IP of your host system.

0 commit comments

Comments
 (0)