File tree Expand file tree Collapse file tree 3 files changed +17
-11
lines changed
Expand file tree Collapse file tree 3 files changed +17
-11
lines changed Original file line number Diff line number Diff line change 44 - ' centos9'
55 - ' fedora40'
66 - ' fedora39'
7+ os_arch :
8+ - ' x86_64'
79 samba_branch :
810 - ' master'
911 - ' v4-20-test'
1012 - ' v4-21-test'
1113 jobs :
12- - ' samba_build-rpms-{os_version}-{samba_branch}'
14+ - ' samba_build-rpms-{os_version}-{samba_branch}-{os_arch} '
1315
1416- job-template :
15- name : ' samba_build-rpms-{os_version}-{samba_branch}'
17+ name : ' samba_build-rpms-{os_version}-{samba_branch}-{os_arch} '
1618 node : cico-workspace
1719 description : Build Samba RPMs.
1820 project-type : freestyle
2729 name : OS_VERSION
2830 default : ' {os_version}'
2931 description : Platform to build the RPMS
32+ - string :
33+ name : CENTOS_ARCH
34+ default : ' {os_arch}'
35+ description : Architecture to build the RPMS
3036 - string :
3137 name : SAMBA_BRANCH
3238 default : ' {samba_branch}'
4652 triggers :
4753 - timed : " H 0 * * *"
4854 - github-pull-request :
49- trigger-phrase : ' /(re)?test ((all)|(centos-ci/build-rpms/({os_version}/{samba_branch})?))'
55+ trigger-phrase : ' /(re)?test ((all)|(centos-ci/build-rpms/({os_version}/{samba_branch}/{os_arch} )?))'
5056 admin-list :
5157 - obnoxxx
5258 - gd
5561 - nixpanic
5662 - phlogistonjohn
5763 cron : H/5 * * * *
58- status-context : ' centos-ci/build-rpms/{os_version}/{samba_branch}'
64+ status-context : ' centos-ci/build-rpms/{os_version}/{samba_branch}/{os_arch} '
5965 white-list-target-branches :
6066 - main
6167 - pollurl :
7076 - shell : !include-raw-escape: scripts/common/scp.sh
7177 - shell : |
7278 #!/bin/bash
73- jobs/scripts/common/bootstrap.sh $WORKSPACE/jobs/scripts/nightly-samba-builds/nightly-samba-builds.sh "ghprbPullId=$ghprbPullId ghprbTargetBranch=$ghprbTargetBranch OS_VERSION=$OS_VERSION SAMBA_BRANCH=$SAMBA_BRANCH"
79+ jobs/scripts/common/bootstrap.sh $WORKSPACE/jobs/scripts/nightly-samba-builds/nightly-samba-builds.sh "ghprbPullId=$ghprbPullId ghprbTargetBranch=$ghprbTargetBranch OS_VERSION=$OS_VERSION OS_ARCH=$CENTOS_ARCH SAMBA_BRANCH=$SAMBA_BRANCH"
7480
7581 publishers :
7682 - email-ext :
Original file line number Diff line number Diff line change @@ -12,9 +12,9 @@ client:
1212EOF
1313
1414if [[ " ${JOB_NAME} " =~ rpms ]]; then
15- POOL_MATCH=" ^(virt-ec2)(.*)(centos-${CENTOS_VERSION} -x86_64 )$"
15+ POOL_MATCH=" ^(virt-ec2)(.*)(centos-${CENTOS_VERSION} -${CENTOS_ARCH} )$"
1616else
17- POOL_MATCH=" ^(metal-ec2)(.*)(centos-${CENTOS_VERSION} -x86_64 )$"
17+ POOL_MATCH=" ^(metal-ec2)(.*)(centos-${CENTOS_VERSION} -${CENTOS_ARCH} )$"
1818fi
1919
2020readarray -t POOLS < <( duffy client list-pools | jq -r ' .pools[].name' )
Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ SAMBA_BRANCH="${SAMBA_BRANCH:-master}"
66SAMBA_MAJOR_VERS=$( [ " ${SAMBA_BRANCH} " != " master" ] && ( (tmp=" ${SAMBA_BRANCH// [a-zA-Z]} " && echo " ${tmp// -/ .} " ) | sed ' s/.$//' ) || echo " ${SAMBA_BRANCH} " )
77PLATFORM=" ${OS_VERSION// [0-9]} "
88VERSION=" ${OS_VERSION// [a-zA-Z]} "
9- CENTOS_ARCH= ' x86_64'
9+ ARCH= ${OS_ARCH :- x86_64}
1010RESULT_BASE=" /tmp/samba-build/rpms"
11- RESULT_DIR=" ${RESULT_BASE} /${SAMBA_MAJOR_VERS} /${PLATFORM} /${VERSION} /${CENTOS_ARCH } "
11+ RESULT_DIR=" ${RESULT_BASE} /${SAMBA_MAJOR_VERS} /${PLATFORM} /${VERSION} /${ARCH } "
1212REPO_NAME=" samba-nightly-${SAMBA_MAJOR_VERS} "
1313REPO_FILE=" ${RESULT_BASE} /${SAMBA_MAJOR_VERS} /${PLATFORM} /${REPO_NAME} .repo"
1414
7171
7272fi
7373
74- make " rpms.${PLATFORM} " " vers=${VERSION} " " refspec=${SAMBA_BRANCH} "
75- make " test.rpms.${PLATFORM} " " vers=${VERSION} " " refspec=${SAMBA_BRANCH} "
74+ make " rpms.${PLATFORM} " " vers=${VERSION} " " arch= ${ARCH} " " refspec=${SAMBA_BRANCH} "
75+ make " test.rpms.${PLATFORM} " " vers=${VERSION} " " arch= ${ARCH} " " refspec=${SAMBA_BRANCH} "
7676
7777# Don't upload the artifacts if running on a PR.
7878if [ -n " ${ghprbPullId} " ]
You can’t perform that action at this time.
0 commit comments