mirror of
https://github.com/armbian/ci-testing-tools.git
synced 2026-01-06 10:31:51 -08:00
09893385a5c8e1bba8cc673a0653f4874fe0340c
ci-testing-tools
scripts, tools, configs for CI-testing
Currently just shell scripts called by jenkins. May evolve into somethign more elegant such as a jenkins file.
Uses some simple logic for a best-effort attempt to compile a kernel based on what code has changed
sample jenkins bash script
#!/bin/bash
GIT_COMMIT=${GITHUB_PR_HEAD_SHA}
GIT_PREVIOUS_COMMIT=HEAD
source ci-testing-tools/jenkins_ci.sh
mkdir -p ${WORKSPACE}/build/userpatches
cp -f ${WORKSPACE}/ci-testing-tools/config-jenkins-kernel.conf ${WORKSPACE}/build/userpatches/
configure_monorepo_watcher
generate_test_table
cd build
get_files_changed
get_build_target
build_kernel jenkins-kernel
dependencies
- https://github.com/slimm609/monorepo-gitwatcher.git
- this repo
- armbian/build
jenkins plugins
- https://plugins.jenkins.io/github-pullrequest
- https://plugins.jenkins.io/multiple-scms
- https://plugins.jenkins.io/pipeline-githubnotify-step
- https://plugins.jenkins.io/pipeline-github
notes
get matches from old builds
for log in */builds/*/log;do fgrep family_row $log|fgrep changed;done|uniq|awk '{print $2}'
Languages
Shell
100%