Skip to content

Commit 1dbabed

Browse files
Merge pull request #1692 from ActiveLearningStudio/may-release
May release
2 parents d5ecdf3 + 4abdf8b commit 1dbabed

File tree

58 files changed

+46951
-3219
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+46951
-3219
lines changed

jenkins/Jenkinsfile.k8s

Lines changed: 26 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -3,49 +3,42 @@ node("currikidev") {
33
def tests
44

55
env.TAG = 'stage'
6-
env.H5P_BRANCH = ''
7-
if(env.BRANCH_NAME == "develop") {
8-
env.H5P_BRANCH = 'develop'
9-
} else if(env.BRANCH_NAME == "staging") {
10-
env.H5P_BRANCH = 'staging'
11-
} else if(env.BRANCH_NAME == "master") {
12-
env.H5P_BRANCH = 'master'
13-
}
14-
15-
stage('Clone repository') {
6+
7+
8+
stage('Clone repository') {
169
sh "echo ${env.BRANCH_NAME}"
17-
18-
checkout scm
19-
}
20-
stage('Build image') {
21-
app = docker.build("quay.io/curriki/api:${env.BUILD_NUMBER}", "-f Dockerfile.kube .")
22-
}
23-
24-
stage('Test image') {
25-
app.inside {
26-
sh 'echo "Api Tests passed"'
27-
}
28-
}
29-
stage('Push image') {
30-
docker.withRegistry('https://quay.io', 'docker-private-credentials') {
31-
app.push("${env.BUILD_NUMBER}")
10+
11+
checkout scm
12+
}
13+
stage('Build image') {
14+
app = docker.build("quay.io/curriki/client:${env.BUILD_NUMBER}", "-f Dockerfile.kube .")
15+
}
16+
17+
stage('Test image') {
18+
app.inside {
19+
sh 'echo "Client Tests passed"'
20+
}
21+
}
22+
stage('Push image') {
23+
docker.withRegistry('https://quay.io', 'docker-private-credentials') {
24+
app.push("${env.BUILD_NUMBER}")
3225
app.push("${env.TAG}")
3326
}
3427
}
35-
stage('Deploy Helm') {
28+
stage('Deploy Helm') {
3629
echo 'Copy'
37-
30+
3831
withCredentials([file(credentialsId: 'kubeconfig', variable: 'mySecretFile')]) {
3932
sh "cp \$mySecretFile kconfig"
40-
33+
4134
}
4235
sh 'curl https://raw.githubusercontent.com/helm/helm/v3.7.0/scripts/get-helm-3 | DESIRED_VERSION="v3.7.0" bash'
43-
36+
4437
sh 'helm upgrade --install curriki-client charts/curriki -f charts/staging.yaml --namespace staging --kubeconfig $(pwd)/kconfig'
45-
38+
4639

4740
}
48-
49-
50-
41+
42+
43+
5144
}

0 commit comments

Comments
 (0)