Skip to content

Commit 2a78c96

Browse files
simonmegglesmcmk
andauthored
feat: 3 versions (#31)
Supports now 2.3-2.5 Co-authored-by: Simon Meggle <simon.meggle@checkmk.com>
1 parent 2c22990 commit 2a78c96

7 files changed

Lines changed: 102 additions & 91 deletions

File tree

.github/workflows/build-mkp.yml

Lines changed: 70 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,48 @@ permissions:
77
contents: write
88

99
jobs:
10-
build-mkp:
10+
build-mkp-cmk2.3:
11+
name: Build MKP for CMK2.3
12+
runs-on: ubuntu-latest
13+
container:
14+
image: checkmk/check-mk-raw:2.3.0-daily
15+
steps:
16+
- name: Install tools
17+
run: apt update && apt-get -y install sudo jq tree hub
18+
- name: Create Checkmk Site
19+
run: /docker-entrypoint.sh /bin/true
20+
- name: Repo Checkout
21+
uses: actions/checkout@v4
22+
with: { fetch-depth: 0 }
23+
- name: Update GITHUB_PATH
24+
run: echo "/omd/sites/cmk/bin" >> $GITHUB_PATH
25+
- name: Extract version
26+
id: version
27+
run: echo "version=${GITHUB_REF_NAME#v}" >> $GITHUB_OUTPUT
28+
# tmate
29+
# - name: Setup tmate session
30+
# uses: mxschmitt/action-tmate@v3
31+
- name: Link repository files into container
32+
run: .devcontainer/linkfiles.sh full
33+
- name: Build MKP
34+
id: cmkpkg
35+
run: |
36+
chmod +x .devcontainer/build.sh
37+
.devcontainer/build.sh "${{ steps.version.outputs.version }}"
38+
- name: Attach MKP to Release
39+
uses: softprops/action-gh-release@v2
40+
with:
41+
files: ${{ steps.cmkpkg.outputs.pkgfile }}
42+
tag_name: ${{ github.ref_name }}
43+
44+
build-mkp-cmk2.4:
1145
name: Build MKP for CMK2.4
1246
runs-on: ubuntu-latest
1347
container:
1448
image: checkmk/check-mk-raw:2.4.0-daily
1549
steps:
1650
- name: Install tools
17-
# TODO: remove vim
18-
run: apt update && apt-get -y install sudo jq tree hub vim
51+
run: apt update && apt-get -y install sudo jq tree hub
1952
- name: Create Checkmk Site
2053
run: /docker-entrypoint.sh /bin/true
2154
- name: Repo Checkout
@@ -26,7 +59,6 @@ jobs:
2659
- name: Extract version
2760
id: version
2861
run: echo "version=${GITHUB_REF_NAME#v}" >> $GITHUB_OUTPUT
29-
3062
# tmate
3163
# - name: Setup tmate session
3264
# uses: mxschmitt/action-tmate@v3
@@ -37,9 +69,42 @@ jobs:
3769
run: |
3870
chmod +x .devcontainer/build.sh
3971
.devcontainer/build.sh "${{ steps.version.outputs.version }}"
40-
4172
- name: Attach MKP to Release
4273
uses: softprops/action-gh-release@v2
4374
with:
4475
files: ${{ steps.cmkpkg.outputs.pkgfile }}
4576
tag_name: ${{ github.ref_name }}
77+
78+
build-mkp-cmk2.5:
79+
name: Build MKP for CMK2.5
80+
runs-on: ubuntu-latest
81+
container:
82+
image: checkmk/check-mk-raw:2.5.0-daily
83+
steps:
84+
- name: Install tools
85+
run: apt update && apt-get -y install sudo jq tree hub
86+
- name: Create Checkmk Site
87+
run: /docker-entrypoint.sh /bin/true
88+
- name: Repo Checkout
89+
uses: actions/checkout@v4
90+
with: { fetch-depth: 0 }
91+
- name: Update GITHUB_PATH
92+
run: echo "/omd/sites/cmk/bin" >> $GITHUB_PATH
93+
- name: Extract version
94+
id: version
95+
run: echo "version=${GITHUB_REF_NAME#v}" >> $GITHUB_OUTPUT
96+
# tmate
97+
# - name: Setup tmate session
98+
# uses: mxschmitt/action-tmate@v3
99+
- name: Link repository files into container
100+
run: .devcontainer/linkfiles.sh full
101+
- name: Build MKP
102+
id: cmkpkg
103+
run: |
104+
chmod +x .devcontainer/build.sh
105+
.devcontainer/build.sh "${{ steps.version.outputs.version }}"
106+
- name: Attach MKP to Release
107+
uses: softprops/action-gh-release@v2
108+
with:
109+
files: ${{ steps.cmkpkg.outputs.pkgfile }}
110+
tag_name: ${{ github.ref_name }}

pkginfo/cmk2.3.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "robotmk-bridge-plugin",
3+
"author": "Simon Meggle, ELABIT GmbH",
4+
"description": "Robot-Bridge acts as a universal adapter that converts results from any test tool into Robot Framework XML for seamless integration with Robotmk and Checkmk.",
5+
"download_url": "https://github.com/elabit/robotmk-bridge-plugin/releases",
6+
"title": "Robotmk Bridge Plugin",
7+
"files": {
8+
"agents": [
9+
"plugins/robotmk_bridge_plugin.py"
10+
]
11+
},
12+
"version.packaged": "2.3.0",
13+
"version.min_required": "2.3.0p1",
14+
"version.usable_until": "2.3.200"
15+
}

pkginfo/cmk2.4.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
]
1111
},
1212
"version.packaged": "2.4.0",
13-
"version.min_required": "2.3.0p1",
14-
"version.usable_until": "2.4.20"
13+
"version.min_required": "2.4.0p1",
14+
"version.usable_until": "2.4.200"
1515
}

pkginfo/cmk2.5.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "robotmk-bridge-plugin",
3+
"author": "Simon Meggle, ELABIT GmbH",
4+
"description": "Robot-Bridge acts as a universal adapter that converts results from any test tool into Robot Framework XML for seamless integration with Robotmk and Checkmk.",
5+
"download_url": "https://github.com/elabit/robotmk-bridge-plugin/releases",
6+
"title": "Robotmk Bridge Plugin",
7+
"files": {
8+
"agents": [
9+
"plugins/robotmk_bridge_plugin.py"
10+
]
11+
},
12+
"version.packaged": "2.5.0",
13+
"version.min_required": "2.5.0p1",
14+
"version.usable_until": "2.5.200"
15+
}

pkginfo/package

Lines changed: 0 additions & 24 deletions
This file was deleted.

pkginfo/robotmk_cmk2.2.json

Lines changed: 0 additions & 30 deletions
This file was deleted.

pkginfo/robotmk_cmk2.3.json

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)