Skip to content

Commit

Permalink
Added auto github release
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Curnow committed Sep 11, 2019
1 parent 43c086a commit db1bcca
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
11 changes: 6 additions & 5 deletions Jenkinsfile.debian9
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ pipeline {
disableConcurrentBuilds()
}
agent {
label 'rpm'
}
environment {
PACKAGE = "pushover-cli"
label 'dpkg'
}
stages {
stage('Prepare') {
Expand All @@ -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')
}
}
}
}
Expand Down
11 changes: 6 additions & 5 deletions Jenkinsfile.mint19
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ pipeline {
disableConcurrentBuilds()
}
agent {
label 'rpm'
}
environment {
PACKAGE = "pushover-cli"
label 'dpkg'
}
stages {
stage('Prepare') {
Expand All @@ -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')
}
}
}
}
Expand Down
5 changes: 4 additions & 1 deletion dpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit db1bcca

Please sign in to comment.