Skip to content

Commit f36ee6d

Browse files
Created Script for validation v1.1.0.Final and update the build_info file (#4905)
Co-authored-by: pratibh13 <[email protected]>
1 parent e250bab commit f36ee6d

File tree

2 files changed

+63
-0
lines changed

2 files changed

+63
-0
lines changed

v/validation/build_info.json

+4
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,9 @@
1111
"docker_build": false,
1212
"3.*.*": {
1313
"build_script": "validation_ubi_9.3.sh"
14+
},
15+
"1.1.0.Final": {
16+
"build_script": "validation_v1.1.0.Final_ubi_9.3.sh"
1417
}
18+
1519
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
#!/bin/bash
2+
# -----------------------------------------------------------------------------
3+
#
4+
# Package : validation
5+
# Version : 1.1.0.Final
6+
# Source repo : https://github.com/jakartaee/validation.git
7+
# Tested on : UBI 9.3
8+
# Language : Java, Shell
9+
# Travis-Check : True
10+
# Script License: Apache License, Version 2 or later
11+
# Maintainer : Pratibh Goshi<[email protected]>
12+
#
13+
# Disclaimer: This script has been tested in root mode on given
14+
# ========== platform using the mentioned version of the package.
15+
# It may not work as expected with newer versions of the
16+
# package and/or distribution. In such case, please
17+
# contact "Maintainer" of this script.
18+
#
19+
# ----------------------------------------------------------------------------
20+
set -e
21+
22+
PACKAGE_NAME=validation
23+
PACKAGE_VERSION=${1:-1.1.0.Final}
24+
PACKAGE_URL=https://github.com/jakartaee/validation.git
25+
26+
# install tools and dependent packages
27+
yum install -y git wget
28+
29+
# setup java environment
30+
yum install -y git wget java-1.8.0-openjdk-devel.ppc64le java-1.8.0-openjdk-headless.ppc64le
31+
export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk
32+
export PATH=$PATH:$JAVA_HOME/bin
33+
34+
# install maven
35+
MAVEN_VERSION=${MAVEN_VERSION:-3.8.8}
36+
wget https://downloads.apache.org/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz
37+
tar -C /usr/local/ -xzf apache-maven-$MAVEN_VERSION-bin.tar.gz
38+
mv /usr/local/apache-maven-$MAVEN_VERSION /usr/local/maven
39+
40+
export M2_HOME=/usr/local/maven
41+
42+
# update the path env. variable
43+
export PATH=$PATH:$M2_HOME/bin
44+
45+
46+
# clone and checkout specified version
47+
git clone $PACKAGE_URL
48+
cd $PACKAGE_NAME
49+
git checkout $PACKAGE_VERSION
50+
51+
#Build and Test
52+
mvn clean install -Dmaven.javadoc.skip=true
53+
if [ $? != 0 ]
54+
then
55+
echo "Build and Test failed for $PACKAGE_NAME-$PACKAGE_VERSION"
56+
exit 1
57+
fi
58+
59+
exit 0

0 commit comments

Comments
 (0)