Browse Source

Run the pip container in jenkins and exports its artifacts

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
Pierre-Yves Chibon 5 years ago
parent
commit
95469144c4
2 changed files with 17 additions and 0 deletions
  1. 2 0
      .cico.pipeline
  2. 15 0
      run_ci_tests_containers.sh

+ 2 - 0
.cico.pipeline

@@ -73,6 +73,7 @@ node('pagure') {
         stage('Sync Artifacts'){
             syncfromduffynode('pagure/results_f29-rpms-py3/')
             syncfromduffynode('pagure/results_centos7-rpms-py2/')
+            syncfromduffynode('pagure/results_fedora-pip-py3/')
         }
 
         stage('Deallocate Node'){
@@ -87,6 +88,7 @@ node('pagure') {
         stage('Archive Artifacts'){
             archiveArtifacts artifacts: 'pagure/results_f29-rpms-py3/'
             archiveArtifacts artifacts: 'pagure/results_centos7-rpms-py2/'
+            archiveArtifacts artifacts: 'pagure/results_fedora-pip-py3/'
         }
     }
 }

+ 15 - 0
run_ci_tests_containers.sh

@@ -36,3 +36,18 @@ podman run --rm -it --name pagure-c7-rpms-py2 \
     -e BRANCH=$BRANCH \
     -e REPO=$REPO \
     pagure-c7-rpms-py2
+
+
+podman build --rm -t pagure-fedora-pip-py3 \
+    -f dev/containers/fedora-pip-py3 \
+    dev/containers
+
+if [ ! -d `pwd`/results_fedora-pip-py3 ]; then
+  mkdir `pwd`/results_fedora-pip-py3;
+fi
+
+podman run --rm -it --name pagure-fedora-pip-py3 \
+    -v `pwd`/results_fedora-pip-py3:/pagure/results:z \
+    -e BRANCH=$BRANCH \
+    -e REPO=$REPO \
+    pagure-fedora-pip-py3