jenkins

安装量: 46
排名: #16249

安装

npx skills add https://github.com/checkmk/checkmk --skill jenkins

Commands you can use to interact with Jenkins

Fetch the Jenkins job results

jenkins_build_data.py --include=stages

You can download test results and console output:

jenkins_build_data.py --include=console,tests

In case the truncated console log does not provide enough information, download the full log

jenkins_build_data.py --include=full-console

in case the jenkins job/build is still BUILDING, you can poll until it is finished (defaults 2 minutes):

jenkins_build_data.py --poll [--poll-interval=SECONDS]

Usage:

jenkins_build_data.py [-h] [--include INCLUDE] [--download SPEC] [--download-dir DOWNLOAD_DIR] [--json] [-q] url

INCLUDE can be: console,tests,artifacts,stages,full-console

Downloading artifacts Always use /tmp/jenkins-artifacts as the download directory: jenkins_build_data.py --download "" --download-dir /tmp/jenkins-artifacts Parsing of the downloaded json Prefer jq over python3 commands. In case the commands jenkins_build_data.py is missing Ask the user to clone the zeug_cmk git repository and add it to their PATH. See also: https://wiki.lan.checkmk.net/x/4zBSCQ

返回排行榜