Skip to content
This repository has been archived by the owner on Jul 31, 2019. It is now read-only.

New Stable Branch Configurations #539

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 19 additions & 6 deletions vcx/ci/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
#!groovy

class Package {
String url
String glob
Package(glob, url) {
this.glob = glob
this.url = url
}
}

def rust
def vcx_python
def libindy
Expand Down Expand Up @@ -111,25 +120,29 @@ def mainUbuntu() {
// debug info
sh 'ls -al output'



def libvcx_deb = Package("libvcx*.deb", "https://kraken.corp.evernym.com/repo/portal_dev/upload" )

if (env.BRANCH_NAME == "master") {
stage('Publish') {
// ******** PUBLISHING (artifacts are in a Docker Volume) ********
withCredentials([usernameColonPassword(credentialsId: 'jenkins-kraken-svc', variable: 'KRAKEN_CREDENTIALS')]) {
libvcx.inside("--network=host") {
// env.KRAKEN_CREDENTIALS = "${KRAKEN_CREDENTIALS}"
// ******** Publish Libvcx Debian to repo ********
sh "vcx/ci/scripts/publish.sh \"${KRAKEN_CREDENTIALS}\" \"libvcx*.deb\" https://kraken.corp.evernym.com/repo/portal_dev/upload"
sh "vcx/ci/scripts/publish.sh \"${KRAKEN_CREDENTIALS}\" \"libvcx*.deb\" https://kraken.corp.evernym.com/repo/agency_dev/upload"
echo "vcx/ci/scripts/publish.sh \"${KRAKEN_CREDENTIALS}\" ${libvcx_deb.glob} ${libvcx_deb.url}"
echo "vcx/ci/scripts/publish.sh \"${KRAKEN_CREDENTIALS}\" \"libvcx*.deb\" https://kraken.corp.evernym.com/repo/agency_dev/upload"

// ******** Publish Npm Package to filely repo ********
sh "vcx/ci/scripts/publish.sh \"${KRAKEN_CREDENTIALS}\" \"node-vcx-wrapper*.tgz\" https://kraken.corp.evernym.com/repo/npm/upload"
echo "vcx/ci/scripts/publish.sh \"${KRAKEN_CREDENTIALS}\" \"node-vcx-wrapper*.tgz\" https://kraken.corp.evernym.com/repo/npm/upload"

// ******** Publish Python Package to filely repo *********
sh "vcx/ci/scripts/publish.sh \"${KRAKEN_CREDENTIALS}\" \"python3-vcx-wrapper*.tar.gz\" https://kraken.corp.evernym.com/repo/python/upload"
echo "vcx/ci/scripts/publish.sh \"${KRAKEN_CREDENTIALS}\" \"python3-vcx-wrapper*.tar.gz\" https://kraken.corp.evernym.com/repo/python/upload"

// ******** Publish vcx Debian To Repo (NPM PACKAGES)
sh "vcx/ci/scripts/publish.sh \"${KRAKEN_CREDENTIALS}\" \"vcx_*.deb\" https://kraken.corp.evernym.com/repo/agency_dev/upload"
sh "vcx/ci/scripts/publish.sh \"${KRAKEN_CREDENTIALS}\" \"vcx_*.deb\" https://kraken.corp.evernym.com/repo/portal_dev/upload"
echo "vcx/ci/scripts/publish.sh \"${KRAKEN_CREDENTIALS}\" \"vcx_*.deb\" https://kraken.corp.evernym.com/repo/agency_dev/upload"
echo "vcx/ci/scripts/publish.sh \"${KRAKEN_CREDENTIALS}\" \"vcx_*.deb\" https://kraken.corp.evernym.com/repo/portal_dev/upload"


// ******** Archive with Jenkins ********
Expand Down