This commit is contained in:
Kevin Duret 2024-08-27 11:11:29 +02:00
parent 42c0789e16
commit 254406d176
2 changed files with 226 additions and 266 deletions

View File

@ -1,35 +0,0 @@
#!/usr/bin/env python3
import json
from sys import argv
package_path = argv[1]
package_name = argv[2]
package_version = argv[3]
package_release = argv[4]
with open('.github/packaging/rpm/plugin.spectemplate', 'r') as rfile:
specfile = rfile.read()
with open('packaging/%s/pkg.json' % package_path, 'r') as rfile:
plugincfg = json.load(rfile)
with open('packaging/%s/rpm.json' % package_path, 'r') as rfile:
pluginrpm = json.load(rfile)
specfile = specfile.replace('@NAME@', package_name)
specfile = specfile.replace('@VERSION@', package_version)
specfile = specfile.replace('@RELEASE@', package_release)
specfile = specfile.replace('@SUMMARY@', plugincfg['pkg_summary'])
specfile = specfile.replace('@PLUGIN_NAME@', plugincfg['plugin_name'])
specfile = specfile.replace(
'@REQUIRES@',
"\n".join(["Requires:\t%s" % x for x in pluginrpm.get('dependencies', '')])
)
specfile = specfile.replace(
'@CUSTOM_PKG_DATA@', pluginrpm.get('custom_pkg_data', '')
)
# write final specfile
with open('plugin.specfile', 'w+') as wfile:
wfile.write(specfile)

View File

@ -25,7 +25,8 @@ jobs:
uses: ./.github/workflows/get-environment.yml uses: ./.github/workflows/get-environment.yml
get-plugins: get-plugins:
runs-on: ubuntu-22.04 needs: [get-environment]
runs-on: ubuntu-24.04
outputs: outputs:
plugins: ${{ steps.get_plugins.outputs.plugins }} plugins: ${{ steps.get_plugins.outputs.plugins }}
steps: steps:
@ -79,62 +80,10 @@ jobs:
if [ "$PLUGINS" == '' ]; then if [ "$PLUGINS" == '' ]; then
echo "::notice::There are no modifications to the plugins packages" echo "::notice::There are no modifications to the plugins packages"
fi fi
shell: bash shell: bash
unit-tests:
needs: [get-environment, get-plugins]
strategy:
fail-fast: false
matrix:
image: [unit-tests-alma8, unit-tests-alma9, unit-tests-bullseye, unit-tests-bookworm]
include:
- runner_name: ubuntu-22.04
- package_extension: rpm
image: unit-tests-alma8
distrib: el8
- package_extension: rpm
image: unit-tests-alma9
distrib: el9
- package_extension: deb
image: unit-tests-bullseye
distrib: bullseye
- package_extension: deb
image: unit-tests-bookworm
distrib: bookworm
runs-on: ${{ matrix.runner_name }}
container:
image: ${{ vars.DOCKER_INTERNAL_REGISTRY_URL }}/${{ matrix.image }}
credentials:
username: ${{ secrets.DOCKER_REGISTRY_ID }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWD }}
steps:
- name: Checkout sources
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Run unit tests
uses: ./.github/actions/unit-tests
- name: Upload logs as artifacts if tests failed
if: failure()
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: plugin-installation-${{ matrix.distrib }}
path: /tmp/*.jsonl
retention-days: 1
fatpacker:
if: ${{ needs.get-plugins.outputs.plugins != '' }}
needs: [get-environment, get-plugins, unit-tests]
runs-on: ubuntu-22.04
steps:
- name: Checkout sources
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 1
- name: Prepare FatPacker - name: Prepare FatPacker
if: ${{ steps.get_plugins.outputs.plugins != '' }}
uses: shogo82148/actions-setup-perl@f551dafcc94572adc179bbddbb409b3ada8f8ff5 # v1.30.0 uses: shogo82148/actions-setup-perl@f551dafcc94572adc179bbddbb409b3ada8f8ff5 # v1.30.0
with: with:
perl-version: '5.34' perl-version: '5.34'
@ -142,210 +91,256 @@ jobs:
install-modules: App::FatPacker File::Copy::Recursive JSON install-modules: App::FatPacker File::Copy::Recursive JSON
- name: Run FatPacker - name: Run FatPacker
if: ${{ steps.get_plugins.outputs.plugins != '' }}
run: | run: |
COMMIT=$(git log -1 HEAD --pretty=format:%h) COMMIT=$(git log -1 HEAD --pretty=format:%h)
perl .github/scripts/plugins-source.container.pl "${{ needs.get-plugins.outputs.plugins }}" "${{ needs.get-environment.outputs.version }} ($COMMIT)" PLUGINS=$(perl .github/scripts/plugins-source.container.pl "${{ steps.get_plugins.outputs.plugins }}" "${{ needs.get-environment.outputs.version }} ($COMMIT)")
echo "hihi"
echo $PLUGINS
- uses: actions/cache/save@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 - uses: actions/cache/save@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with: with:
path: ./build/ path: ./build/
key: fatpacked-plugins-${{ github.sha }}-${{ github.run_id }} key: fatpacked-plugins-${{ github.sha }}-${{ github.run_id }}
package: # unit-tests:
runs-on: ubuntu-22.04 # needs: [get-environment, get-plugins]
needs: [get-environment, get-plugins, fatpacker] # strategy:
# fail-fast: false
# matrix:
# image: [unit-tests-alma8, unit-tests-alma9, unit-tests-bullseye, unit-tests-bookworm]
# include:
# - runner_name: ubuntu-22.04
# - package_extension: rpm
# image: unit-tests-alma8
# distrib: el8
# - package_extension: rpm
# image: unit-tests-alma9
# distrib: el9
# - package_extension: deb
# image: unit-tests-bullseye
# distrib: bullseye
# - package_extension: deb
# image: unit-tests-bookworm
# distrib: bookworm
strategy: # runs-on: ${{ matrix.runner_name }}
fail-fast: false # container:
matrix: # image: ${{ vars.DOCKER_INTERNAL_REGISTRY_URL }}/${{ matrix.image }}
include: # credentials:
- package_extension: rpm # username: ${{ secrets.DOCKER_REGISTRY_ID }}
image: packaging-plugins-alma8 # password: ${{ secrets.DOCKER_REGISTRY_PASSWD }}
distrib: el7 # steps:
- package_extension: rpm # - name: Checkout sources
image: packaging-plugins-alma8 # uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
distrib: el8
- package_extension: rpm
image: packaging-plugins-alma9
distrib: el9
- package_extension: deb
image: packaging-plugins-bullseye
distrib: bullseye
- package_extension: deb
image: packaging-plugins-bookworm
distrib: bookworm
- package_extension: deb
image: packaging-plugins-jammy
distrib: jammy
container: # - name: Run unit tests
image: ${{ vars.DOCKER_INTERNAL_REGISTRY_URL }}/${{ matrix.image }} # uses: ./.github/actions/unit-tests
credentials:
username: ${{ secrets.DOCKER_REGISTRY_ID }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWD }}
name: "package ${{ matrix.distrib }}" # - name: Upload logs as artifacts if tests failed
# if: failure()
# uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
# with:
# name: plugin-installation-${{ matrix.distrib }}
# path: /tmp/*.jsonl
# retention-days: 1
steps: # package:
- name: Checkout sources # if: ${{ needs.get-plugins.outputs.plugins != '' }}
if: ${{ matrix.distrib == 'el7' }} # runs-on: ubuntu-24.04
# el7 is not compatible with checkout v4 which uses node20 # needs: [get-environment, get-plugins]
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- name: Checkout sources # strategy:
if: ${{ matrix.distrib != 'el7' }} # fail-fast: false
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 # matrix:
# include:
# - package_extension: rpm
# image: packaging-plugins-alma8
# distrib: el7
# - package_extension: rpm
# image: packaging-plugins-alma8
# distrib: el8
# - package_extension: rpm
# image: packaging-plugins-alma9
# distrib: el9
# - package_extension: deb
# image: packaging-plugins-bullseye
# distrib: bullseye
# - package_extension: deb
# image: packaging-plugins-bookworm
# distrib: bookworm
# - package_extension: deb
# image: packaging-plugins-jammy
# distrib: jammy
- if: ${{ matrix.distrib == 'el7' }} # container:
# el7 is not compatible with checkout v4 which uses node20 # image: ${{ vars.DOCKER_INTERNAL_REGISTRY_URL }}/${{ matrix.image }}
uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 # credentials:
with: # username: ${{ secrets.DOCKER_REGISTRY_ID }}
path: ./build/ # password: ${{ secrets.DOCKER_REGISTRY_PASSWD }}
key: fatpacked-plugins-${{ github.sha }}-${{ github.run_id }}
fail-on-cache-miss: true
- if: ${{ matrix.distrib != 'el7' }} # name: "package ${{ matrix.distrib }}"
uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
path: ./build/
key: fatpacked-plugins-${{ github.sha }}-${{ github.run_id }}
fail-on-cache-miss: true
- run: | # steps:
PLUGINS="${{ needs.get-plugins.outputs.plugins }}" # - name: Checkout sources
for PLUGIN in $PLUGINS; do # if: ${{ matrix.distrib == 'el7' }}
PACKAGE_PATH=$PLUGIN # # el7 is not compatible with checkout v4 which uses node20
# uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
if [[ "$PLUGIN" =~ (.+)"=>"(.+) ]]; then # - name: Checkout sources
PACKAGE_PATH=$(echo ${BASH_REMATCH[1]}) # if: ${{ matrix.distrib != 'el7' }}
PLUGIN=$(echo ${BASH_REMATCH[2]}) # uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
fi
PLUGIN_NAME_LOWER=$(echo "$PLUGIN" | tr '[:upper:]' '[:lower:]') # - if: ${{ matrix.distrib == 'el7' }}
# # el7 is not compatible with checkout v4 which uses node20
# uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
# with:
# path: ./build/
# key: fatpacked-plugins-${{ github.sha }}-${{ github.run_id }}
# fail-on-cache-miss: true
echo "::group::Preparing $PLUGIN_NAME_LOWER" # - if: ${{ matrix.distrib != 'el7' }}
# uses: actions/cache/restore@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
# with:
# path: ./build/
# key: fatpacked-plugins-${{ github.sha }}-${{ github.run_id }}
# fail-on-cache-miss: true
# Process package files # - run: |
pkg_values=($(cat "packaging/$PACKAGE_PATH/pkg.json" | jq -r '.pkg_name,.plugin_name')) # PLUGINS="${{ needs.get-plugins.outputs.plugins }}"
pkg_summary=$(echo "${pkg_values[0]}") # for PLUGIN in $PLUGINS; do
plugin_name=$(echo "${pkg_values[1]}") # PACKAGE_PATH=$PLUGIN
conflicts=$(cat "packaging/$PACKAGE_PATH/pkg.json" | jq -r '.conflicts // [] | join(",")')
replaces=$(cat "packaging/$PACKAGE_PATH/pkg.json" | jq -r '.replaces // [] | join(",")')
provides=$(cat "packaging/$PACKAGE_PATH/pkg.json" | jq -r '.provides // [] | join(",")')
deb_dependencies=$(cat "packaging/$PACKAGE_PATH/deb.json" | jq -r '.dependencies // [] | join(",")')
deb_conflicts=$(cat "packaging/$PACKAGE_PATH/deb.json" | jq -r '.conflicts // [] | join(",")')
deb_replaces=$(cat "packaging/$PACKAGE_PATH/deb.json" | jq -r '.replaces // [] | join(",")')
deb_provides=$(cat "packaging/$PACKAGE_PATH/deb.json" | jq -r '.provides // [] | join(",")')
rpm_dependencies=$(cat "packaging/$PACKAGE_PATH/rpm.json" | jq -r '.dependencies // [] | join(",")')
rpm_conflicts=$(cat "packaging/$PACKAGE_PATH/rpm.json" | jq -r '.conflicts // [] | join(",")')
rpm_replaces=$(cat "packaging/$PACKAGE_PATH/rpm.json" | jq -r '.replaces // [] | join(",")')
rpm_provides=$(cat "packaging/$PACKAGE_PATH/rpm.json" | jq -r '.provides // [] | join(",")')
sed -e "s/@PLUGIN_NAME@/$PLUGIN/g;" \ # if [[ "$PLUGIN" =~ (.+)"=>"(.+) ]]; then
-e "s/@SUMMARY@/$pkg_summary/g" \ # PACKAGE_PATH=$(echo ${BASH_REMATCH[1]})
-e "s/@CONFLICTS@/$conflicts/g" \ # PLUGIN=$(echo ${BASH_REMATCH[2]})
-e "s/@REPLACES@/$replaces/g" \ # fi
-e "s/@PROVIDES@/$provides/g" \
-e "s/@DEB_DEPENDENCIES@/$deb_dependencies/g" \
-e "s/@DEB_CONFLICTS@/$deb_conflicts/g" \
-e "s/@DEB_REPLACES@/$deb_replaces/g" \
-e "s/@DEB_PROVIDES@/$deb_provides/g" \
-e "s/@RPM_DEPENDENCIES@/$rpm_dependencies/g" \
-e "s/@RPM_CONFLICTS@/$rpm_conflicts/g" \
-e "s/@RPM_REPLACES@/$rpm_replaces/g" \
-e "s/@RPM_PROVIDES@/$rpm_provides/g" \
< .github/packaging/centreon-plugin.yaml.template \
>> .github/packaging/$PLUGIN.yaml
if [ "${{ matrix.package_extension }}" = "rpm" ]; then # PLUGIN_NAME_LOWER=$(echo "$PLUGIN" | tr '[:upper:]' '[:lower:]')
sed -i "s/@PACKAGE_NAME@/$PLUGIN/g" \
.github/packaging/$PLUGIN.yaml
else
sed -i "s/@PACKAGE_NAME@/$PLUGIN_NAME_LOWER/g" \
.github/packaging/$PLUGIN.yaml
fi
cat .github/packaging/$PLUGIN.yaml # echo "::group::Preparing $PLUGIN_NAME_LOWER"
echo "::endgroup::" # # Process package files
done # pkg_values=($(cat "packaging/$PACKAGE_PATH/pkg.json" | jq -r '.pkg_name,.plugin_name'))
shell: bash # pkg_summary=$(echo "${pkg_values[0]}")
# plugin_name=$(echo "${pkg_values[1]}")
# conflicts=$(cat "packaging/$PACKAGE_PATH/pkg.json" | jq -r '.conflicts // [] | join(",")')
# replaces=$(cat "packaging/$PACKAGE_PATH/pkg.json" | jq -r '.replaces // [] | join(",")')
# provides=$(cat "packaging/$PACKAGE_PATH/pkg.json" | jq -r '.provides // [] | join(",")')
# deb_dependencies=$(cat "packaging/$PACKAGE_PATH/deb.json" | jq -r '.dependencies // [] | join(",")')
# deb_conflicts=$(cat "packaging/$PACKAGE_PATH/deb.json" | jq -r '.conflicts // [] | join(",")')
# deb_replaces=$(cat "packaging/$PACKAGE_PATH/deb.json" | jq -r '.replaces // [] | join(",")')
# deb_provides=$(cat "packaging/$PACKAGE_PATH/deb.json" | jq -r '.provides // [] | join(",")')
# rpm_dependencies=$(cat "packaging/$PACKAGE_PATH/rpm.json" | jq -r '.dependencies // [] | join(",")')
# rpm_conflicts=$(cat "packaging/$PACKAGE_PATH/rpm.json" | jq -r '.conflicts // [] | join(",")')
# rpm_replaces=$(cat "packaging/$PACKAGE_PATH/rpm.json" | jq -r '.replaces // [] | join(",")')
# rpm_provides=$(cat "packaging/$PACKAGE_PATH/rpm.json" | jq -r '.provides // [] | join(",")')
- uses: ./.github/actions/package-nfpm # sed -e "s/@PLUGIN_NAME@/$PLUGIN/g;" \
with: # -e "s/@SUMMARY@/$pkg_summary/g" \
nfpm_file_pattern: ".github/packaging/*.yaml" # -e "s/@CONFLICTS@/$conflicts/g" \
distrib: ${{ matrix.distrib }} # -e "s/@REPLACES@/$replaces/g" \
package_extension: ${{ matrix.package_extension }} # -e "s/@PROVIDES@/$provides/g" \
version: ${{ needs.get-environment.outputs.version }} # -e "s/@DEB_DEPENDENCIES@/$deb_dependencies/g" \
release: ${{ needs.get-environment.outputs.release }} # -e "s/@DEB_CONFLICTS@/$deb_conflicts/g" \
commit_hash: ${{ github.sha }} # -e "s/@DEB_REPLACES@/$deb_replaces/g" \
cache_key: ${{ github.sha }}-${{ github.run_id }}-${{ matrix.package_extension }}-${{ matrix.distrib }} # -e "s/@DEB_PROVIDES@/$deb_provides/g" \
rpm_gpg_key: ${{ secrets.RPM_GPG_SIGNING_KEY }} # -e "s/@RPM_DEPENDENCIES@/$rpm_dependencies/g" \
rpm_gpg_signing_key_id: ${{ secrets.RPM_GPG_SIGNING_KEY_ID }} # -e "s/@RPM_CONFLICTS@/$rpm_conflicts/g" \
rpm_gpg_signing_passphrase: ${{ secrets.RPM_GPG_SIGNING_PASSPHRASE }} # -e "s/@RPM_REPLACES@/$rpm_replaces/g" \
stability: ${{ needs.get-environment.outputs.stability }} # -e "s/@RPM_PROVIDES@/$rpm_provides/g" \
# < .github/packaging/centreon-plugin.yaml.template \
# >> .github/packaging/$PLUGIN.yaml
test-plugins: # if [ "${{ matrix.package_extension }}" = "rpm" ]; then
needs: [get-environment, get-plugins, package] # sed -i "s/@PACKAGE_NAME@/$PLUGIN/g" \
strategy: # .github/packaging/$PLUGIN.yaml
fail-fast: false # else
matrix: # sed -i "s/@PACKAGE_NAME@/$PLUGIN_NAME_LOWER/g" \
image: [testing-plugins-alma8, testing-plugins-alma9, testing-plugins-jammy, testing-plugins-bullseye, testing-plugins-bookworm] # .github/packaging/$PLUGIN.yaml
include: # fi
- runner_name: ubuntu-22.04
- package_extension: rpm
image: testing-plugins-alma8
distrib: el8
- package_extension: rpm
image: testing-plugins-alma9
distrib: el9
- package_extension: deb
image: testing-plugins-bullseye
distrib: bullseye
- package_extension: deb
image: testing-plugins-bookworm
distrib: bookworm
- package_extension: deb
image: testing-plugins-jammy
distrib: jammy
- package_extension: deb
image: testing-plugins-bullseye-arm64
distrib: bullseye
arch: arm64
runner_name: ["self-hosted", "collect-arm64"]
runs-on: ${{ matrix.runner_name }} # cat .github/packaging/$PLUGIN.yaml
container:
image: ${{ vars.DOCKER_INTERNAL_REGISTRY_URL }}/${{ matrix.image }}
credentials:
username: ${{ secrets.DOCKER_REGISTRY_ID }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWD }}
steps:
- name: Checkout sources
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: ./.github/actions/test-plugins # echo "::endgroup::"
with: # done
cache-key: ${{ github.sha }}-${{ github.run_id }}-${{ matrix.package_extension }}-${{ matrix.distrib }} # shell: bash
package-extension: ${{ matrix.package_extension }}
plugin-list: ${{ needs.get-plugins.outputs.plugins }}
- name: Upload apt/dnf logs as artifacts if tests failed # - uses: ./.github/actions/package-nfpm
if: failure() # with:
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3 # nfpm_file_pattern: ".github/packaging/*.yaml"
with: # distrib: ${{ matrix.distrib }}
name: plugin-installation-${{ matrix.distrib }} # package_extension: ${{ matrix.package_extension }}
path: /var/log/robot-plugins-installation-tests.log # version: ${{ needs.get-environment.outputs.version }}
retention-days: 1 # release: ${{ needs.get-environment.outputs.release }}
# commit_hash: ${{ github.sha }}
# cache_key: ${{ github.sha }}-${{ github.run_id }}-${{ matrix.package_extension }}-${{ matrix.distrib }}
# rpm_gpg_key: ${{ secrets.RPM_GPG_SIGNING_KEY }}
# rpm_gpg_signing_key_id: ${{ secrets.RPM_GPG_SIGNING_KEY_ID }}
# rpm_gpg_signing_passphrase: ${{ secrets.RPM_GPG_SIGNING_PASSPHRASE }}
# stability: ${{ needs.get-environment.outputs.stability }}
deliver: # test-plugins:
needs: [get-environment, package, test-plugins] # needs: [get-environment, get-plugins, package]
if: ${{ contains(fromJson('["stable", "testing", "unstable"]'), needs.get-environment.outputs.stability) }} # strategy:
uses: ./.github/workflows/plugin-delivery.yml # fail-fast: false
with: # matrix:
version: ${{ needs.get-environment.outputs.version }} # image: [testing-plugins-alma8, testing-plugins-alma9, testing-plugins-jammy, testing-plugins-bullseye, testing-plugins-bookworm]
release: ${{ needs.get-environment.outputs.release }} # include:
stability: ${{ needs.get-environment.outputs.stability }} # - runner_name: ubuntu-22.04
secrets: # - package_extension: rpm
artifactory_token: ${{ secrets.ARTIFACTORY_ACCESS_TOKEN }} # image: testing-plugins-alma8
token_download_centreon_com: ${{ secrets.TOKEN_DOWNLOAD_CENTREON_COM }} # distrib: el8
# - package_extension: rpm
# image: testing-plugins-alma9
# distrib: el9
# - package_extension: deb
# image: testing-plugins-bullseye
# distrib: bullseye
# - package_extension: deb
# image: testing-plugins-bookworm
# distrib: bookworm
# - package_extension: deb
# image: testing-plugins-jammy
# distrib: jammy
# - package_extension: deb
# image: testing-plugins-bullseye-arm64
# distrib: bullseye
# arch: arm64
# runner_name: ["self-hosted", "collect-arm64"]
# runs-on: ${{ matrix.runner_name }}
# container:
# image: ${{ vars.DOCKER_INTERNAL_REGISTRY_URL }}/${{ matrix.image }}
# credentials:
# username: ${{ secrets.DOCKER_REGISTRY_ID }}
# password: ${{ secrets.DOCKER_REGISTRY_PASSWD }}
# steps:
# - name: Checkout sources
# uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
# - uses: ./.github/actions/test-plugins
# with:
# cache-key: ${{ github.sha }}-${{ github.run_id }}-${{ matrix.package_extension }}-${{ matrix.distrib }}
# package-extension: ${{ matrix.package_extension }}
# plugin-list: ${{ needs.get-plugins.outputs.plugins }}
# - name: Upload apt/dnf logs as artifacts if tests failed
# if: failure()
# uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
# with:
# name: plugin-installation-${{ matrix.distrib }}
# path: /var/log/robot-plugins-installation-tests.log
# retention-days: 1
# deliver:
# needs: [get-environment, package, test-plugins]
# if: ${{ contains(fromJson('["stable", "testing", "unstable"]'), needs.get-environment.outputs.stability) }}
# uses: ./.github/workflows/plugin-delivery.yml
# with:
# version: ${{ needs.get-environment.outputs.version }}
# release: ${{ needs.get-environment.outputs.release }}
# stability: ${{ needs.get-environment.outputs.stability }}
# secrets:
# artifactory_token: ${{ secrets.ARTIFACTORY_ACCESS_TOKEN }}
# token_download_centreon_com: ${{ secrets.TOKEN_DOWNLOAD_CENTREON_COM }}