Jenkins
Example using te-runner in Jenkins.
- Ruby
- JavaScript
testevolve.jenkinsfile
podTemplate(yaml: """
apiVersion: v1
kind: Pod
metadata:
labels:
jenkins-agent: daemonless
spec:
containers:
- name: terunner
image: gcr.io/test-evolve-prod/spark/te-runner:1.2.0
tty: true
tolerations:
- key: build
operator: Equal
value: reserved
effect: NoSchedule
nodeSelector:
build-node: true
"""
) {
node(POD_LABEL) {
stage('Checkout') {
// Checkout your source repo
}
stage('Configuration') {
dir ('halo') {
container('terunner') {
sh 'bundle'
}
}
}
stage('Run Regressions Tests') {
dir ('halo') {
container('terunner') {
sh "rake ci:test"
}
}
}
}
}
testevolve.jenkinsfile
podTemplate(yaml: """
apiVersion: v1
kind: Pod
metadata:
labels:
jenkins-agent: daemonless
spec:
containers:
- name: terunner
image: gcr.io/test-evolve-prod/spark/te-runner:1.2.0
tty: true
tolerations:
- key: build
operator: Equal
value: reserved
effect: NoSchedule
nodeSelector:
build-node: true
"""
) {
node(POD_LABEL) {
stage('Checkout') {
// Checkout your source repo
}
stage('Configuration') {
dir ('halo') {
container('terunner') {
npm config set @testevolve:registry https://oxy.jfrog.io/artifactory/api/npm/spark-js
sh 'npm i'
}
}
}
stage('Run Regressions Tests') {
dir ('halo') {
container('terunner') {
sh "npm run test"
}
}
}
}
}