You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by lb...@apache.org on 2019/02/14 12:46:12 UTC
[camel-k] branch master updated: chore(deploy snapshot): deploy
runtime snapshots to apache snapshot repo, fixes #432
This is an automated email from the ASF dual-hosted git repository.
lburgazzoli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/master by this push:
new 55cac7e chore(deploy snapshot): deploy runtime snapshots to apache snapshot repo, fixes #432
55cac7e is described below
commit 55cac7e99785f7e3e0f9babe4fdc6c4405d7e66a
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Feb 14 12:47:48 2019 +0100
chore(deploy snapshot): deploy runtime snapshots to apache snapshot repo, fixes #432
---
Gopkg.lock | 1 +
contributing.adoc | 24 ++++++++++++++++++++++++
script/Makefile | 5 ++++-
3 files changed, 29 insertions(+), 1 deletion(-)
diff --git a/Gopkg.lock b/Gopkg.lock
index 6f10ebf..f47e069 100644
--- a/Gopkg.lock
+++ b/Gopkg.lock
@@ -1102,6 +1102,7 @@
"github.com/spf13/cobra",
"github.com/stoewer/go-strcase",
"github.com/stretchr/testify/assert",
+ "go.uber.org/multierr",
"gopkg.in/yaml.v2",
"k8s.io/api/apps/v1",
"k8s.io/api/core/v1",
diff --git a/contributing.adoc b/contributing.adoc
index 99234ac..b16f2e8 100644
--- a/contributing.adoc
+++ b/contributing.adoc
@@ -90,6 +90,30 @@ After a successful build, if you're connected to a Docker daemon, you can build
make images
```
+[[push-snapshot]]
+== Push runtime snapshot
+
+For the Java bits in runtime you can push to the snapshost to the Apache Snapshot repository with:
+
+* `make push-runtime-snapshot`: to push the Java-based runtime snapshot JARs.
+
+In your settings.xml you'll need to have the correct ASF credentials to push.
+
+```
+ <server>
+ <id>apache.snapshots.https</id>
+ <username>username</username>
+ <password>password</password>
+ </server>
+ <server>
+ <id>apache.releases.https</id>
+ <username>username</username>
+ <password>password</password>
+ </server>
+```
+
+Don't forget to first run a `make build-runtime` before pushing the snapshot
+
[[testing]]
== Testing
diff --git a/script/Makefile b/script/Makefile
index 95f4e6c..47acae6 100644
--- a/script/Makefile
+++ b/script/Makefile
@@ -22,6 +22,9 @@ build-compile-integration-tests:
build-runtime:
./mvnw clean install -B -f ./runtime/pom.xml
+push-runtime-snapshot:
+ ./mvnw deploy -B -f ./runtime/pom.xml
+
release: clean prepare-release build images-build images-push cross-compile package-examples git-tag publish-base-images
prepare-release:
@@ -84,4 +87,4 @@ check-integration:
lint:
golangci-lint run
-.PHONY: build build-operator build-kamel build-embed-resources build-runtime dep codegen images images-build images-push test check test-integration check-integration clean release prepare-release cross-compile package-examples new-version git-tag publish-base-images increment-snapshot install-minishift
+.PHONY: build build-operator build-kamel build-embed-resources build-runtime push-runtime-snapshot dep codegen images images-build images-push test check test-integration check-integration clean release prepare-release cross-compile package-examples new-version git-tag publish-base-images increment-snapshot install-minishift