forked from jenkins-x/cloud-environments
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
48 lines (44 loc) · 1.4 KB
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
pipeline {
agent any
environment {
GKE_SA = credentials('gke-sa')
GH_CREDS = credentials('jx-pipeline-git-github-github')
GHE_CREDS = credentials('jx-pipeline-git-github-ghe')
JENKINS_CREDS = credentials('test-jenkins-user')
GIT_PROVIDER_URL = "https://github.beescloud.com"
}
stages {
stage('CI Build') {
when {
branch 'PR-*'
}
environment {
CLUSTER_NAME = "JXCE-$BRANCH_NAME-$BUILD_NUMBER"
ZONE = "europe-west1-c"
PROJECT_ID = "jenkinsx-dev"
SERVICE_ACCOUNT_FILE = "$GKE_SA"
GHE_TOKEN = "$GHE_CREDS_PSW"
JENKINS_PASSWORD="$JENKINS_CREDS_PSW"
JX_DISABLE_DELETE_APP = "true"
JX_DISABLE_DELETE_REPO = "true"
// enable debug logging
GINKGO_ARGS = "-v"
// lets use a separate cluster
JX_HOME="/tmp/jxhome"
KUBECONFIG="/tmp/jxhome/config"
}
steps {
sh "./jx/scripts/bdd.sh"
}
}
stage('Build and Push Release') {
when {
branch 'master'
}
steps {
// auto upgrade demo env
echo 'auto upgrades not yet implemented'
}
}
}
}