Skip to content

Commit 53795f3

Browse files
authored
Merge pull request #145 from felippeb/sovrin_repo
added SovrinRepo upload method for deb files on stable branch
2 parents 08dffb6 + 6a2addb commit 53795f3

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

devops/aws-codebuild/Jenkinsfile.cd

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ pipelineWrapper({
1919
}
2020

2121
def evernymRepo = evLibrary.EvernymRepo.new(this)
22+
def sovrinRepo = evLibrary.SovrinRepo.new(this)
2223
def utils = evLibrary.Utils.new(this)
2324
def buildCtx = evLibrary.AwsCodeBuildHelper.BuildCtx.new('plugin',
2425
['devops', 'sovtoken/sovtoken/__metadata__.py', 'sovtokenfees/sovtokenfees/__metadata__.py'])
@@ -110,7 +111,7 @@ pipelineWrapper({
110111
}
111112
}
112113

113-
stage('Upload deb to Evernym repo') {
114+
stage('Upload deb to repositories') {
114115
String debName
115116

116117
dir("${awsCBHelper.buildCtx.projects[prTag].artifactsDir}") {
@@ -121,6 +122,14 @@ pipelineWrapper({
121122
repoDistr = 'agency_dev'
122123
packagePath = debName
123124
}
125+
126+
if (env.BRANCH_NAME == 'stable') {
127+
logger.info("Uploading debian package '$debName' to sovrin repo")
128+
SovrinRepo.upload {
129+
repoDistr = 'sdk'
130+
packagePath = debName
131+
}
132+
}
124133
}
125134

126135
notifier.email {

0 commit comments

Comments
 (0)