Skip to content

Commit 3d44ad7

Browse files
khorshuhengfeast-ci-bot
authored andcommitted
Use Nexus staging plugin for deployment (feast-dev#394)
* Use Nexus staging pluging for deployment * Fix Javadoc error * Hard coded parent version as variable substitution is not supported
1 parent c3175e8 commit 3d44ad7

14 files changed

Lines changed: 65 additions & 37 deletions

File tree

.prow/scripts/test-end-to-end-batch.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
set -e
44
set -o pipefail
55

6-
export REVISION=dev
7-
86
if ! cat /etc/*release | grep -q stretch; then
97
echo ${BASH_SOURCE} only supports Debian stretch.
108
echo Please change your operating system to use this script.
@@ -92,7 +90,7 @@ Building jars for Feast
9290
--output-dir /root/
9391

9492
# Build jars for Feast
95-
mvn --quiet --batch-mode --define skipTests=true --define revision=$REVISION clean package
93+
mvn --quiet --batch-mode --define skipTests=true clean package
9694

9795
echo "
9896
============================================================
@@ -144,7 +142,7 @@ management:
144142
enabled: false
145143
EOF
146144

147-
nohup java -jar core/target/feast-core-$REVISION.jar \
145+
nohup java -jar core/target/feast-core-*-SNAPSHOT.jar \
148146
--spring.config.location=file:///tmp/core.application.yml \
149147
&> /var/log/feast-core.log &
150148
sleep 35
@@ -198,7 +196,7 @@ spring:
198196
web-environment: false
199197
EOF
200198

201-
nohup java -jar serving/target/feast-serving-$REVISION.jar \
199+
nohup java -jar serving/target/feast-serving-*-SNAPSHOT.jar \
202200
--spring.config.location=file:///tmp/serving.warehouse.application.yml \
203201
&> /var/log/feast-serving-warehouse.log &
204202
sleep 15

.prow/scripts/test-end-to-end.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
set -e
44
set -o pipefail
55

6-
export REVISION=dev
7-
86
if ! cat /etc/*release | grep -q stretch; then
97
echo ${BASH_SOURCE} only supports Debian stretch.
108
echo Please change your operating system to use this script.
@@ -79,7 +77,7 @@ Building jars for Feast
7977
--output-dir /root/
8078

8179
# Build jars for Feast
82-
mvn --quiet --batch-mode --define skipTests=true --define revision=$REVISION clean package
80+
mvn --quiet --batch-mode --define skipTests=true clean package
8381

8482
ls -lh core/target/*jar
8583
ls -lh serving/target/*jar
@@ -135,7 +133,7 @@ management:
135133
enabled: false
136134
EOF
137135

138-
nohup java -jar core/target/feast-core-$REVISION.jar \
136+
nohup java -jar core/target/feast-core-*-SNAPSHOT.jar \
139137
--spring.config.location=file:///tmp/core.application.yml \
140138
&> /var/log/feast-core.log &
141139
sleep 35
@@ -189,7 +187,7 @@ spring:
189187
190188
EOF
191189

192-
nohup java -jar serving/target/feast-serving-$REVISION.jar \
190+
nohup java -jar serving/target/feast-serving-*-SNAPSHOT.jar \
193191
--spring.config.location=file:///tmp/serving.online.application.yml \
194192
&> /var/log/feast-serving-online.log &
195193
sleep 15

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ build-cli:
3232
$(MAKE) -C cli build-all
3333

3434
build-java:
35-
mvn clean verify -Drevision=$(VERSION)
35+
mvn clean verify
3636

3737
build-docker:
3838
docker build -t $(REGISTRY)/feast-core:$(VERSION) -f infra/docker/core/Dockerfile .

core/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
<modelVersion>4.0.0</modelVersion>
2222

2323
<parent>
24-
<groupId>feast</groupId>
24+
<groupId>dev.feast</groupId>
2525
<artifactId>feast-parent</artifactId>
26-
<version>${revision}</version>
26+
<version>0.3.6-SNAPSHOT</version>
2727
</parent>
2828

2929
<name>Feast Core</name>
@@ -48,7 +48,7 @@
4848

4949
<dependencies>
5050
<dependency>
51-
<groupId>feast</groupId>
51+
<groupId>dev.feast</groupId>
5252
<artifactId>feast-ingestion</artifactId>
5353
<version>${project.version}</version>
5454
</dependency>

core/src/main/java/feast/core/config/MonitoringConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public FeastResourceCollector feastResourceCollector(
6666
/**
6767
* Register custom Prometheus collector that exports metrics about JVM resource usage.
6868
*
69-
* @return @{link {@link JVMResourceCollector}}
69+
* @return {@link JVMResourceCollector}
7070
*/
7171
@Bean
7272
public JVMResourceCollector jvmResourceCollector() {

core/src/main/java/feast/core/service/SpecService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public GetFeatureSetResponse getFeatureSet(GetFeatureSetRequest request) {
143143
* possible if a project name is not set explicitly
144144
*
145145
* <p>The version field can be one of - '*' - This will match all versions - 'latest' - This will
146-
* match the latest feature set version - '<number>' - This will match a specific feature set
146+
* match the latest feature set version - '&lt;number&gt;' - This will match a specific feature set
147147
* version. This property can only be set if both the feature set name and project name are
148148
* explicitly set.
149149
*

core/src/main/java/feast/core/util/PackageUtil.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@ public class PackageUtil {
4949
* handled by default in Apache Beam.
5050
*
5151
* <pre>
52-
* @code
52+
* <code>
5353
* URL url = new URL("jar:file:/tmp/springexample/target/spring-example-1.0-SNAPSHOT.jar!/BOOT-INF/lib/beam-sdks-java-core-2.16.0.jar!/");
54+
* </code>
5455
* String resolvedPath = resolveSpringBootPackageClasspath(url);
5556
* // resolvedPath should point to "/tmp/springexample/target/spring-example-1.0-SNAPSHOT/BOOT-INF/lib/beam-sdks-java-core-2.16.0.jar"
5657
* // Note that spring-example-1.0-SNAPSHOT.jar is extracted in the process.

infra/docker/core/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ WORKDIR /build
1212
# the existing .m2 directory to $FEAST_REPO_ROOT/.m2
1313
#
1414
ENV MAVEN_OPTS="-Dmaven.repo.local=/build/.m2/repository -DdependencyLocationsEnabled=false"
15-
RUN mvn --also-make --projects core,ingestion -Drevision=$REVISION \
15+
RUN mvn --also-make --projects core,ingestion \
1616
-DskipTests=true --batch-mode package
1717
#
1818
# Unpack the jar and copy the files into production Docker image

infra/docker/serving/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ WORKDIR /build
1212
# the existing .m2 directory to $FEAST_REPO_ROOT/.m2
1313
#
1414
ENV MAVEN_OPTS="-Dmaven.repo.local=/build/.m2/repository -DdependencyLocationsEnabled=false"
15-
RUN mvn --also-make --projects serving -Drevision=$REVISION \
15+
RUN mvn --also-make --projects serving \
1616
-DskipTests=true --batch-mode package
1717

1818
# ============================================================

ingestion/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
<modelVersion>4.0.0</modelVersion>
2222

2323
<parent>
24-
<groupId>feast</groupId>
24+
<groupId>dev.feast</groupId>
2525
<artifactId>feast-parent</artifactId>
26-
<version>${revision}</version>
26+
<version>0.3.6-SNAPSHOT</version>
2727
</parent>
2828

2929
<name>Feast Ingestion</name>

0 commit comments

Comments
 (0)