Skip to content

Commit 4669c8d

Browse files
authored
create jenkins release (#240)
* create jenkins release * remove github build
1 parent 7a84109 commit 4669c8d

File tree

4 files changed

+11
-92
lines changed

4 files changed

+11
-92
lines changed

.github/fix-maven.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.
-2.11 MB
Binary file not shown.

.github/workflows/build.yml

Lines changed: 0 additions & 80 deletions
This file was deleted.

Jenkinsfile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pipeline {
2525
when { buildingTag(); not { changeRequest() } }
2626
steps {
2727
script {
28-
target = "deploy -P release --settings settings.xml"
28+
target = "deploy -P release -P rpm --settings settings.xml"
2929
}
3030
sh 'gpg --batch --import arpnetworking.key'
3131
}
@@ -41,6 +41,16 @@ pipeline {
4141
}
4242
}
4343
}
44+
stage('GitHub release') {
45+
when { buildingTag(); not { changeRequest() } }
46+
steps {
47+
withCredentials([usernamePassword(credentialsId: 'brandonarp-github-token', usernameVariable: 'GITHUB_USERNAME', passwordVariable: 'GITHUB_TOKEN')]) {
48+
sh "github-release release --user ArpNetworking --repo metrics-aggregator-daemon --tag ${TAG_NAME}"
49+
sh "github-release upload --user ArpNetworking --repo metrics-aggregator-daemon --tag ${TAG_NAME} --name metrics-aggregator-daemon-${TAG_NAME}.tgz --file target/metrics-aggregator-daemon*.tgz"
50+
sh "github-release upload --user ArpNetworking --repo metrics-aggregator-daemon --tag ${TAG_NAME} --name metrics-aggregator-daemon-${TAG_NAME}.rpm --file target/rpm/metrics-aggregator-daemon/RPMS/noarch/metrics-aggregator-daemon-*.rpm"
51+
}
52+
}
53+
}
4454
}
4555
post('Analysis') {
4656
always {

0 commit comments

Comments
 (0)