Skip to content

Commit

Permalink
using the new python36 slave image
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Görn <goern@redhat.com>
  • Loading branch information
goern committed Jun 15, 2018
1 parent 471d228 commit 04008f4
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 2 deletions.
5 changes: 3 additions & 2 deletions features/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ pipeline {
containerTemplate {
name 'jnlp'
args '${computer.jnlpmac} ${computer.name}'
image DOCKER_REPO_URL + '/'+ CI_NAMESPACE +'/core-e2e-test:latest'
image DOCKER_REPO_URL + '/'+ CI_NAMESPACE +'/jenkins-aicoe-slave-python36:stable'
ttyEnabled false
command ''
}
Expand All @@ -69,7 +69,8 @@ pipeline {

sh '''
cd features/
# behave
pipenv install
behave
'''
}
} // steps
Expand Down
44 changes: 44 additions & 0 deletions openshift/cronjob-e2e-test-template.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
apiVersion: v1
kind: Template
labels:
template: core-e2e-test-cronjob
thoth: 0.1.0
metadata:
name: core-e2e-test-cronjob
annotations:
description: This is Thoth Core End-to-End Test CronJob, this template is meant to be used by Jenkins, but could also be used by humans...
openshift.io/display-name: 'Thoth Core: End-to-End Test CronJob'
version: 0.1.0
tags: poc,thoth,end-to-end,e2e,test,ai-stacks
template.openshift.io/documentation-url: https://github.com/Thoth-Station/
template.openshift.io/long-description: This is Thoth Core End-to-End Test BuildConfig, this template is meant to be used by Jenkins, but could also be used by humans...
template.openshift.io/provider-display-name: Red Hat, Inc.

objects:
- apiVersion: batch/v2alpha1
kind: CronJob
metadata:
labels:
run: core-e2e-test
name: core-e2e-test
spec:
concurrencyPolicy: Forbid
jobTemplate:
spec:
backoffLimit: 2
activeDeadlineSeconds: 100
template:
metadata:
labels:
run: core-e2e-test
spec:
containers:
- name: core-e2e-test
args:
- behave
image: core-e2e-test
imagePullPolicy: Always
resources: {}
restartPolicy: Never
schedule: 0/5 * * * ?
suspend: true

0 comments on commit 04008f4

Please sign in to comment.