mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-13 18:25:45 +00:00
fix uploading to digitalocean
This commit is contained in:
parent
a0e7dc65c4
commit
ae0a017b50
@ -72,11 +72,11 @@ pipeline {
|
|||||||
stage('Upload') {
|
stage('Upload') {
|
||||||
when { expression { params.PUBLISH } }
|
when { expression { params.PUBLISH } }
|
||||||
steps { script {
|
steps { script {
|
||||||
def pkg = "pkg/StatusIm-${GIT_COMMIT.take(6)}"
|
def pkg = "StatusIm-${GIT_COMMIT.take(6)}"
|
||||||
apkUrl = common.uploadArtifact("${pkg}.apk")
|
apkUrl = common.uploadArtifact('pkg', "${pkg}.apk")
|
||||||
ipaUrl = common.uploadArtifact("${pkg}.ipa")
|
ipaUrl = common.uploadArtifact('pkg', "${pkg}.ipa")
|
||||||
dmgUrl = common.uploadArtifact("${pkg}.dmg")
|
dmgUrl = common.uploadArtifact('pkg', "${pkg}.dmg")
|
||||||
appUrl = common.uploadArtifact("${pkg}.AppImage")
|
appUrl = common.uploadArtifact('pkg', "${pkg}.AppImage")
|
||||||
} }
|
} }
|
||||||
}
|
}
|
||||||
stage('Notify') {
|
stage('Notify') {
|
||||||
|
@ -35,7 +35,7 @@ def tagBuild() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
def uploadArtifact(filename) {
|
def uploadArtifact(path, filename) {
|
||||||
def domain = 'ams3.digitaloceanspaces.com'
|
def domain = 'ams3.digitaloceanspaces.com'
|
||||||
def bucket = 'status-im-desktop'
|
def bucket = 'status-im-desktop'
|
||||||
withCredentials([usernamePassword(
|
withCredentials([usernamePassword(
|
||||||
@ -50,7 +50,7 @@ def uploadArtifact(filename) {
|
|||||||
--host-bucket='%(bucket)s.${domain}' \\
|
--host-bucket='%(bucket)s.${domain}' \\
|
||||||
--access_key=${DO_ACCESS_KEY} \\
|
--access_key=${DO_ACCESS_KEY} \\
|
||||||
--secret_key=${DO_SECRET_KEY} \\
|
--secret_key=${DO_SECRET_KEY} \\
|
||||||
put ${filename} s3://${bucket}/
|
put ${path}/${filename} s3://${bucket}/
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
def url = "https://${bucket}.${domain}/${filename}"
|
def url = "https://${bucket}.${domain}/${filename}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user