Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 14d073918ef0de595d48a4035c2af9cf4eec010d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash -x

#*******************************************************************************
# Copyright (c) 2019 IBM Corporation and others.
#
# This program and the accompanying materials
# are made available under the terms of the Eclipse Public License 2.0
# which accompanies this distribution, and is available at
# https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#
# Contributors:
#     Kit Lo - initial API and implementation
#*******************************************************************************

if [ $# -ne 1 ]; then
  echo USAGE: $0 env_file
  exit 1
fi

source $CJE_ROOT/scripts/common-functions.shsource
source $1

mkdir $CJE_ROOT/tmp

cd $CJE_ROOT/gitCache/eclipse.platform.releng.aggregator
mvn --update-snapshots org.eclipse.tycho:tycho-versions-plugin:1.3.0:update-pom \
  -Dmaven.repo.local=$LOCAL_REPO \
  -Djava.io.tmpdir=$CJE_ROOT/tmp \
  -DaggregatorBuild=true \
  -DbuildTimestamp=$TIMESTAMP \
  -DbuildType=$BUILD_TYPE \
  -DbuildId=$BUILD_ID \
  -Declipse-p2-repo.url=NOT_FOR_PRODUCTION_USE

RC=$?
if [[ $RC != 0 ]]
then
  echo "ERROR: tycho-versions-plugin:update-pom returned non-zero return code: $RC" >&2
else
  changes=$( git status --short -uno | cut -c4- )
  if [ -z "$changes" ]; then
    echo "INFO: No changes in pom versions" >&2
    RC=0
  else
    echo "INFO: Changes in pom versions: $changes" >&2
    RC=0
  fi
fi

Back to the top