Skip to content

Commit

Permalink
Remove powershell
Browse files Browse the repository at this point in the history
Previously, the agent plugin and part of the extension were written in
powershell. Both have since be rewritten in Rust, making ci and the
scripts themselve redundant.

We have sofar "archived" most scripts. However, being able to easily
look up these scripts offers little benefit. Having them in the git
log should suffice. Thus, we delete them.

We also remove the corresponding ci jobs.

CMK-14887
  • Loading branch information
SoloJacobs committed Oct 24, 2023
1 parent ae811d2 commit 58e4ceb
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 272 deletions.
3 changes: 0 additions & 3 deletions PSScriptAnalyzerSettings.psd1

This file was deleted.

74 changes: 0 additions & 74 deletions checkmk_extensions/agent/robotmk_collector.ps1

This file was deleted.

171 changes: 0 additions & 171 deletions checkmk_extensions/agent/scheduler_runner.ps1

This file was deleted.

22 changes: 0 additions & 22 deletions ci
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ main() {
topdir="$(git rev-parse --show-toplevel)"
self="${topdir}/ci"
cargo_toml_path="${topdir}/v2/robotmk/Cargo.toml"
checkmk_extensions_dir="${topdir}/checkmk_extensions"
mode="${1}"
shift

Expand All @@ -21,34 +20,13 @@ main() {
cargo test --manifest-path "${cargo_toml_path}" --all-targets
;;

'PSScriptAnalyzer-check-all')
pwsh_output=$(pwsh -Command "Invoke-ScriptAnalyzer -Settings ${topdir}/PSScriptAnalyzerSettings.psd1 -Path ${checkmk_extensions_dir} -Recurse")
pwsh_exitcode="$?"
if [ "${pwsh_exitcode}" -eq 0 ]; then {
if [ -z "${pwsh_output}" ]; then {
echo "No static Powershell issues found"
return 0
} else {
echo "${pwsh_output}"
return 1
}
fi
} else {
echo "${pwsh_output}"
return "${pwsh_exitcode}"
}
fi
;;

'check-all')
exit_code=0
for rust_step in fmt-check clippy test
do
"${self}" "cargo-${rust_step}"
exit_code=$(( exit_code + $? ))
done
"${self}" "PSScriptAnalyzer-check-all"
return "$(( exit_code + $? ))"
;;

*)
Expand Down
1 change: 0 additions & 1 deletion v2/data/retry_rcc/windows.ps1

This file was deleted.

1 change: 0 additions & 1 deletion v2/data/retry_suite/windows.ps1

This file was deleted.

0 comments on commit 58e4ceb

Please sign in to comment.