blob: ef010e3e3625c2860a4278e00841214367c0e1fa [file] [log] [blame]
Leonardo Sandoval9dfdd1b2020-08-06 17:08:11 -05001#!/usr/bin/env bash
Zelalemd36c2d92020-08-04 16:59:47 -05002#
3# Copyright (c) 2020, Arm Limited. All rights reserved.
4#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8# Fast forward master branch with integration
9
Paul Sokolovsky105f3852022-01-25 17:19:30 +030010set -ex
Zelalemd36c2d92020-08-04 16:59:47 -050011
12git clone ssh://$CI_BOT_USERNAME@review.trustedfirmware.org:29418/TF-A/trusted-firmware-a
13cd trusted-firmware-a
14git checkout master
15git merge --ff-only origin/integration
Paul Sokolovsky105f3852022-01-25 17:19:30 +030016
17# On OpenCI, disable push for now, until we're confident enough we want to do
18# this automatically. See comments in https://linaro.atlassian.net/browse/TFC-223.
19if echo "$JENKINS_URL" | grep -q "arm.com"; then
20 git push origin master
21fi
22
Zelalemd36c2d92020-08-04 16:59:47 -050023cd ..
24rm -rf trusted-firmware-a