Skip to content

Commit

Permalink
packaging: upload artefacts to dhtnet.sfl.io
Browse files Browse the repository at this point in the history
Upload generated artefacts on nigtly folder and keep the last 10 build
in Jenkins for now. Avoid using the exclude method used before
for artifact and switch to creating a publish/ folder as it's easier
for rsync.

Change-Id: I311a1ef457bb96b8106263e21d5e9abc2a5f43e3
  • Loading branch information
loulou123546 authored and aberaud committed Oct 22, 2024
1 parent 7da115a commit a487239
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions extras/packaging/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
def JENKINS_SSH_KEY = '35cefd32-dd99-41b0-8312-0b386df306ff'
def DL_SSH_KEY = '5825b39b-dfc6-435f-918e-12acc1f56221'
def REMOTE_HOST = 'sshadmin@ring-repovm-01.mtl.sfl'

pipeline {
agent any
triggers {
Expand All @@ -18,6 +22,9 @@ pipeline {
string(name: 'GERRIT_REFSPEC',
defaultValue: 'refs/heads/dhtnet',
description: 'The Gerrit refspec to fetch.')
choice(name: 'PUBLISH_CHANNEL',
choices: ['nightly', 'stable'],
description: 'Nightly is for build created automaticaly or with low confidence level. After testing and careful review, you can run manual stable build.')
}
environment {
PKG_NAME="dhtnet"
Expand Down Expand Up @@ -142,8 +149,8 @@ pipeline {
}
post {
success {
dir('extras/packaging') {
archiveArtifacts artifacts: 'ubuntu-*/dhtnet_*.deb, debian-*/dhtnet_*.deb',
dir('extras/packaging/publish') {
archiveArtifacts artifacts: '**/*',
caseSensitive: false
}
}
Expand Down

0 comments on commit a487239

Please sign in to comment.