URL: https://github.com/SSSD/sssd/pull/919
Author: pbrezina
 Title: #919: ci: improvements for on-demand builds
Action: opened

PR body:
"""
1. Logs are now correctly archived in Jenkins.
2. Internal `sssd-ci` tool now allows to issue build only for specific systems 
(`sssd-ci build -s debian10 -s fedora-rawhide`)
"""

To pull the PR as Git branch:
git remote add ghsssd https://github.com/SSSD/sssd
git fetch ghsssd pull/919/head:pr919
git checkout pr919
From 2928e6cbcd6bdba3fbf5316f40520924a88726db Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <pbrez...@redhat.com>
Date: Tue, 29 Oct 2019 10:17:16 +0100
Subject: [PATCH 1/2] ci: store artifacts in jenkins for on-demand runs

---
 Jenkinsfile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Jenkinsfile b/Jenkinsfile
index c139b241fa..950216e12a 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -244,6 +244,8 @@ class OnDemandTest extends Test {
 
   def archive() {
     this.pipeline.echo 'On demand run. Artifacts are not stored in the cloud.'
+    this.pipeline.archiveArtifacts artifacts: "artifacts/**",
+      allowEmptyArchive: true
   }
 }
 

From cca14946d8a6b22c8ae3d2309f82925a4be3c04a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <pbrez...@redhat.com>
Date: Tue, 29 Oct 2019 10:55:07 +0100
Subject: [PATCH 2/2] ci: allow to specify systems where tests should be run
 for on-demand tests

---
 Jenkinsfile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Jenkinsfile b/Jenkinsfile
index 950216e12a..62756ebf8d 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -257,6 +257,12 @@ def notification = new Notification(
   on_demand
 )
 
+if (params.SYSTEMS) {
+  if (params.SYSTEMS != 'all') {
+    systems = params.SYSTEMS.split()
+  }
+}
+
 try {
   /* Setup nice build description so pull request are easy to find. */
   stage('Setup description') {
_______________________________________________
sssd-devel mailing list -- sssd-devel@lists.fedorahosted.org
To unsubscribe send an email to sssd-devel-le...@lists.fedorahosted.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedorahosted.org/archives/list/sssd-devel@lists.fedorahosted.org

Reply via email to