forked from hyperledger/indy-node
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'base/master' into indy_2144
- Loading branch information
Showing
95 changed files
with
1,220 additions
and
2,233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,7 @@ cli_output.log | |
.cache | ||
nosetests.xml | ||
coverage.xml | ||
tails/ | ||
|
||
# Translations | ||
*.mo | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
#!groovy | ||
|
||
@Library('[email protected]') _ | ||
|
||
String pkgName = 'indy-node' | ||
String mainModuleName = 'indy_node' | ||
String emailRecipients = params.INDY_NODE_RECIPIENTS ?: env.INDY_NODE_RECIPIENTS ?: '' | ||
|
||
def localLib | ||
def err | ||
String buildPkgVersion | ||
String buildSrcVersion | ||
|
||
String scmRepoUrl | ||
String scmSha1 | ||
|
||
try { | ||
nodeWrapper('ubuntu') { | ||
stage('Resolve version to build') { | ||
docker.image('hyperledger/indy-core-baseci:0.0.3-master').inside('-u 0') { | ||
sh "apt-get update && apt-get install -y $pkgName" | ||
releaseVersion = getReleaseVersion(mainModuleName, false) | ||
buildPkgVersion = "${releaseVersion.release}~${releaseVersion.pre}${releaseVersion.revision}" | ||
buildSrcVersion = sh(returnStdout: true, script: """ | ||
python3 -c "from $mainModuleName import load_manifest; print(load_manifest()['sha1'])" | ||
""").trim() | ||
} | ||
echo "Version to build: buildSrcVersion=$buildSrcVersion, buildPkgVersion=$buildPkgVersion" | ||
} | ||
|
||
stage('Load local shared library') { | ||
checkout scm | ||
localLib = load 'ci/pipeline.groovy' | ||
|
||
scmRepoUrl = gitHelper.repoUrl() | ||
scmSha1 = gitHelper.sha1() | ||
} | ||
} | ||
|
||
localLib.systemTests { | ||
repoChannel = 'master' | ||
pkgVersion = buildPkgVersion | ||
srcVersion = buildSrcVersion | ||
testSchema = [ | ||
['test_ledger.py'], | ||
['test_vc.py'], | ||
['test_consensus.py', 'TestTAASuite.py'], | ||
['test_upgrade.py', 'test_roles.py', 'test_freshness.py', 'TestMultiSigSuite.py'], | ||
['TestAuditSuite.py'], | ||
['TestAuthMapSuite.py'] | ||
] | ||
testVersion = 'v0.8.4' | ||
testVersionByTag = true | ||
} | ||
} catch(Exception _err) { | ||
currentBuild.result = "FAILED" | ||
err = _err | ||
throw _err | ||
} finally { | ||
stage('Build result notification') { | ||
sendNotification.email { | ||
to = emailRecipients | ||
subject = "[${pkgName}][nightly] Build #${this.env.BUILD_NUMBER} ${err ? 'failed' : 'succeed'} for version ${buildPkgVersion} (${buildSrcVersion})" | ||
srcUrl = "${scmRepoUrl}/tree/${scmSha1}" | ||
} | ||
} | ||
|
||
if (err) { | ||
stage('Error dump') { | ||
echo "Pipeline failed: $err" | ||
} | ||
} | ||
} |
Oops, something went wrong.