| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent bb3b9cd commit fdbf391
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,7 @@ | |||
| 1 | 1 | String cron_string = BRANCH_NAME == "ci" ? "H 12 * * 1-5" : "" | |
| 2 | 2 | ||
| 3 | 3 | pipeline { | |
| 4 | - agent { label 'linux' } | ||
| 4 | + agent { label 'linux && !gpu' } | ||
| 5 | 5 | options { | |
| 6 | 6 | disableConcurrentBuilds() | |
| 7 | 7 | } | |
@@ -35,11 +35,32 @@ pipeline { | |||
| 35 | 35 | } | |
| 36 | 36 | } | |
| 37 | 37 | ||
| 38 | - stage('Push Image') { | ||
| 38 | + stage('Push Temporary Image') { | ||
| 39 | + steps { | ||
| 40 | + slackSend color: 'none', message: "*<${env.BUILD_URL}console|pushing temporary image>* ${GIT_COMMIT_SUMMARY}", channel: env.SLACK_CHANNEL | ||
| 41 | + sh '''#!/bin/bash | ||
| 42 | + ./push gpu-test | ||
| 43 | + ''' | ||
| 44 | + } | ||
| 45 | + } | ||
| 46 | + | ||
| 47 | + stage('Test Image on GPU') { | ||
| 48 | + agent { label 'linux && gpu' } | ||
| 49 | + steps { | ||
| 50 | + slackSend color: 'none', message: "*<${env.BUILD_URL}console|testing image on GPU>* ${GIT_COMMIT_SUMMARY}", channel: env.SLACK_CHANNEL | ||
| 51 | + sh '''#!/bin/bash | ||
| 52 | + gcloud docker -- pull gcr.io/kaggle-private-byod/python:gpu-test | ||
| 53 | + docker tag gcr.io/kaggle-private-byod/python:gpu-test kaggle/python-build:latest | ||
| 54 | + ./test | ||
| 55 | + ''' | ||
| 56 | + } | ||
| 57 | + } | ||
| 58 | + | ||
| 59 | + stage('Push Final Image') { | ||
| 39 | 60 | steps { | |
| 40 | 61 | slackSend color: 'none', message: "*<${env.BUILD_URL}console|pushing image>* ${GIT_COMMIT_SUMMARY}", channel: env.SLACK_CHANNEL | |
| 41 | 62 | sh '''#!/bin/bash | |
| 42 | - ./push | ||
| 63 | + ./push staging | ||
| 43 | 64 | ''' | |
| 44 | 65 | } | |
| 45 | 66 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments