- job: name: trigger-lt-qcom-linux-build project-type: freestyle defaults: global logrotate: daysToKeep: 30 numToKeep: 30 parameters: - string: name: KERNEL_REPO_URL default: 'https://git.linaro.org/landing-teams/working/qualcomm/kernel.git' - string: name: KERNEL_BRANCHES default: 'release/qcomlt-5.7 release/qcomlt-5.9 release/qcomlt-5.10 alimon/tracking' properties: - authorization: anonymous: - job-read - job-extended-read - job-workspace linaro-landing-team-qualcomm-personnel: - job-read - job-extended-read - job-build - job-cancel disabled: false node: triggers display-name: 'Trigger for Qualcomm LT kernel build' scm: - git: url: https://git.linaro.org/git/landing-teams/working/qualcomm/kernel.git refspec: +refs/heads/release/*:refs/remotes/origin/release/* name: origin branches: - refs/heads/release/.* skip-tag: true shallow-clone: false wipe-workspace: false triggers: - timed: 'H/5 * * * *' wrappers: - timestamps - build-name: name: '#${BUILD_NUMBER}' builders: - shell: | #!/bin/bash set -ex rm -rf configs git clone --depth 1 http://git.linaro.org/ci/job/configs.git git fetch --all set +e ./configs/trigger-lt-qcom-linux-build/get_branch_to_build.py \ > branch_to_build ret=$? if [ $ret -ne 0 ]; then echo "warning: no new kernel branch to build available" exit 1 fi - inject: properties-file: branch_to_build - shell: | #!/bin/bash set -ex # bring in stable and mainline tags git fetch --tags https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --tags https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable.git git checkout ${GIT_BRANCH} KERNEL_CONFIGS_arm64=defconfig if echo "${KERNEL_BRANCH}" | grep -q "release/.*"; then KERNEL_CONFIGS_arm64="${KERNEL_CONFIGS_arm64} distro.config" elif echo "${KERNEL_BRANCH}" | grep -q "alimon/tracking"; then KERNEL_CONFIGS_arm64="${KERNEL_CONFIGS_arm64} distro.config" fi echo KERNEL_REPO_URL=${KERNEL_REPO_URL} > build_parameters echo KERNEL_BRANCH=$(echo ${GIT_BRANCH} | sed 's|origin/||') >> build_parameters echo KERNEL_VERSION=$(make kernelversion) >> build_parameters echo KERNEL_DESCRIBE=$(git describe --always) >> build_parameters echo KERNEL_CONFIGS_arm64=${KERNEL_CONFIGS_arm64} >> build_parameters echo KDEB_CHANGELOG_DIST=unstable >> build_parameters cat build_parameters - inject: properties-file: build_parameters publishers: - logparser: parse-rules: '/var/jenkins_home/userContent/android.parse' unstable-on-warning: true fail-on-error: false - groovy-postbuild: script: !include-raw: - trigger-lt-qcom-linux-build/postbuild.groovy - trigger-parameterized-builds: - project: - 'lt-qcom-linux-build' condition: SUCCESS property-file: build_parameters