diff --git a/Jenkinsfile.debian9 b/Jenkinsfile.debian9 index 2f7bd3f..3a7e595 100644 --- a/Jenkinsfile.debian9 +++ b/Jenkinsfile.debian9 @@ -4,10 +4,7 @@ pipeline { disableConcurrentBuilds() } agent { - label 'rpm' - } - environment { - PACKAGE = "pushover-cli" + label 'dpkg' } stages { stage('Prepare') { @@ -32,7 +29,11 @@ pipeline { } stage('Publish') { steps { - archiveArtifacts(artifacts: "${PACKAGE}*.*", caseSensitive: true, onlyIfSuccessful: true) + script { + def Dpkg = readJSON file: 'dpkg.json' + archiveArtifacts(artifacts: "${Dpkg.PACKAGE}*.*", caseSensitive: true, onlyIfSuccessful: true) + dpkgGithubRelease('debian9') + } } } } diff --git a/Jenkinsfile.mint19 b/Jenkinsfile.mint19 index 941996c..d8bf450 100644 --- a/Jenkinsfile.mint19 +++ b/Jenkinsfile.mint19 @@ -4,10 +4,7 @@ pipeline { disableConcurrentBuilds() } agent { - label 'rpm' - } - environment { - PACKAGE = "pushover-cli" + label 'dpkg' } stages { stage('Prepare') { @@ -32,7 +29,11 @@ pipeline { } stage('Publish') { steps { - archiveArtifacts(artifacts: "${PACKAGE}*.*", caseSensitive: true, onlyIfSuccessful: true) + script { + def Dpkg = readJSON file: 'dpkg.json' + archiveArtifacts(artifacts: "${Dpkg.PACKAGE}*.*", caseSensitive: true, onlyIfSuccessful: true) + dpkgGithubRelease('mint19') + } } } } diff --git a/dpkg.json b/dpkg.json index f65daf1..958f86e 100644 --- a/dpkg.json +++ b/dpkg.json @@ -4,5 +4,8 @@ "COMMIT": "4bfab24bb56f32da942b467c55da817269ff5cbb", "GH_USER": "jc21", "URL": "https://github.com/${GH_USER}/${PACKAGE}/archive/${VERSION}.tar.gz", - "SIGN_KEY": "EFD591B218E19AE3376D80D14F9E050D1DFFBB86" + "SIGN_KEY": "EFD591B218E19AE3376D80D14F9E050D1DFFBB86", + "publish": { + "GH_USER": "jc21-dpkg" + } } \ No newline at end of file