project-name: dcaegen2-collectors-datafile
stream:
- - nordix-dev:
+ - master:
branch: '{stream}'
- upstream-branch: 'master'
- - nordix-casablanca:
+ - casablanca:
branch: '{stream}'
- upstream-branch: 'casablanca'
jobs:
- '{project-name}-{stream}-rebase'
- job-template:
name: '{project-name}-{stream}-rebase'
- node: ubuntu1804
+ node: infra-build01-ubuntu1804
disabled: false
name: NORDIX_REMOTE
default: 'ssh://infra@gerrit.nordix.org:29418/{project}.git'
description: The remote to add for Nordix.
- - string:
- name: UPSTREAM_BRANCH
- default: '{upstream-branch}'
- description: The upstream branch to rebase against.
scm:
- git-scm:
ssh-credentials-id: nordixinfra-lfn-gerrit-ssh
- branch: "$UPSTREAM_BRANCH"
+ branch: '{branch}'
refspec: ''
triggers:
- onap-gerrit-trigger-change-merged:
project: '{project}'
- branch: "$UPSTREAM_BRANCH"
+ branch: '{branch}'
files: '**'
builders:
set -o pipefail
cd $WORKSPACE
-git checkout $UPSTREAM_BRANCH -q
+echo "Checking out $BRANCH"
+git checkout $BRANCH -q
git pull -q
echo "Commit is"
echo "-------------------------------------------"
git show -s
echo "-------------------------------------------"
-echo "Adding new remote for sync"
+echo "Adding new remote $NORDIX_REMOTE for sync"
git remote add nordix $NORDIX_REMOTE
echo "-------------------------------------------"
git remote -v
echo "-------------------------------------------"
-echo "Pushing changes to Nordix BRANCH"
+echo "Pushing changes to Nordix branch $BRANCH"
git push nordix $BRANCH