Disable Interactivity for and enable Pharos Backup 33/50533/1
authorTrevor Bramwell <tbramwell@linuxfoundation.org>
Fri, 12 Jan 2018 22:15:21 +0000 (14:15 -0800)
committerTrevor Bramwell <tbramwell@linuxfoundation.org>
Fri, 12 Jan 2018 22:36:09 +0000 (14:36 -0800)
When running docker commands from an interactive shell the '-it' flags
are needed. Since the backup isn't running any interactive command,
these flags aren't needed and failing the job due to a tty not being
allocated to the Jenkins user.

Change-Id: I9bd81faaf548b3247ee1992f6db9c0258ebfc1fb
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
jjb/pharos/pharos.yml

index c721c8d..d0db6a4 100644 (file)
@@ -6,6 +6,8 @@
       - '{name}'
       - '{name}-tools'
 
+    disabled: false
+
     jobs:
       - '{project}-verify-basic'
       - 'backup-pharos-dashboard'
@@ -28,7 +30,7 @@
           mkdir -p $BACKUP_DIR
           echo "-- $(date +%Y%m%d) --"
           echo "Backing up Pharos Dashboard data..."
-          sudo docker run -it --rm \
+          sudo docker run --rm \
             -v pharos-data:/pharos-data:ro \
             -v $TMP_DIR:/backup \
             alpine \