Compare commits
2 Commits
8cf97f2878
...
4e78c48fbf
Author | SHA1 | Date |
---|---|---|
|
4e78c48fbf | |
|
c88b4c42e8 |
|
@ -68,7 +68,7 @@ pipeline {
|
|||
|
||||
stage('Publish') {
|
||||
when {
|
||||
branch 'master'
|
||||
branch 'dev/ci'
|
||||
}
|
||||
steps {
|
||||
sshagent(['jenkins-repohost']) {
|
||||
|
|
|
@ -7,6 +7,11 @@ REPO_PATH=/srv/www/repohost/repos/dch/fedora/$(rpm --eval %fedora)
|
|||
ssh-add -l
|
||||
ssh-add -L
|
||||
|
||||
mkdir -p "${WORKSPACE_TMP}/sync"
|
||||
cd "${WORKSPACE_TMP}/sync"
|
||||
ln "${WORKSPACE}/f${FEDORA}"/*.rpm .
|
||||
ln "${WORKSPACE}/f${FEDORA}/${ARCH}"/*.rpm .
|
||||
|
||||
case "${ARCH}" in
|
||||
x86_64)
|
||||
# only include the SRPM once
|
||||
|
@ -21,5 +26,6 @@ rsync -rtiO \
|
|||
--chmod=ugo=rwX \
|
||||
--include "${include}" \
|
||||
--exclude '*' \
|
||||
--dry-run \
|
||||
./ \
|
||||
"${REPO_HOST}:${REPO_PATH}/"
|
||||
|
|
Loading…
Reference in New Issue