Skip to content
Snippets Groups Projects
Commit a4872393 authored by Louis Maillard's avatar Louis Maillard Committed by Adrien Béraud
Browse files

packaging: upload artefacts to dhtnet.sfl.io

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
parent 7da115ad
No related branches found
No related tags found
No related merge requests found
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 {
......@@ -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"
......@@ -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
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment