From 8a82e4743f5005f16ca5f55a8e1ecbcaa5cfa1d1 Mon Sep 17 00:00:00 2001
From: "Gervaise H. Henry" <gervaise.henry@utsouthwestern.edu>
Date: Sat, 27 Apr 2019 18:53:38 -0500
Subject: [PATCH] Update .gitlab-ci.yml

---
 .gitlab-ci.yml | 32 ++++++++++++++++++++++++++++++--
 1 file changed, 30 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7b3bafd..962c228 100755
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -17,16 +17,28 @@ stages:
 astrocyte_check:
   stage: astrocyte
   script:
-  - astrocyte_cli check ../cellranger_count
+    - astrocyte_cli check ../cellranger_count
   artifacts:
     expire_in: 2 days
+  retry:
+    max: 2
+    when:
+      - always
 
 run_hu.cr3v2ref3.0.0:
   stage: simple
   script:
   - nextflow run workflow/main.nf --fastq "$CI_PROJECT_DIR/test_data/hu.v2s1r500/*.fastq.gz" --designFile "$CI_PROJECT_DIR/test_data/hu.v2s1r500/design.csv" --genome 'GRCh38-3.0.0' --kitVersion 'two' --version '3.0.2'
   artifacts:
+    name: "$CI_JOB_NAME"
+    when: always
+    paths:
+      - binaries/
     expire_in: 2 days
+  retry:
+    max: 2
+    when:
+      - always
 
 run_mu.cr2v2ref1.2.0:
   stage: detailed
@@ -35,7 +47,15 @@ run_mu.cr2v2ref1.2.0:
   script:
   - nextflow run workflow/main.nf --fastq "$CI_PROJECT_DIR/test_data/mu.v2s2r10k/*.fastq.gz" --designFile "$CI_PROJECT_DIR/test_data/mu.v2s2r10k/design.csv" --genome 'mm10-1.2.0' --kitVersion 'auto' --version '2.1.1'
   artifacts:
+    name: "$CI_JOB_NAME"
+    when: always
+    paths:
+      - binaries/
     expire_in: 2 days
+  retry:
+    max: 2
+    when:
+      - always
 
 run_hu.cr3v3ref3.0.0:
   stage: detailed
@@ -44,4 +64,12 @@ run_hu.cr3v3ref3.0.0:
   script:
   - nextflow run workflow/main.nf --fastq "$CI_PROJECT_DIR/test_data/hu.v3s2r10k/*.fastq.gz" --designFile "$CI_PROJECT_DIR/test_data/hu.v3s2r10k/design.csv" --genome 'GRCh38-3.0.0' --kitVersion 'auto' --version '3.0.2'
   artifacts:
-    expire_in: 2 days
\ No newline at end of file
+    name: "$CI_JOB_NAME"
+    when: always
+    paths:
+      - binaries/
+    expire_in: 2 days
+  retry:
+    max: 2
+    when:
+      - always
\ No newline at end of file
-- 
GitLab