forked from fabric8-ui/fabric8-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
release.groovy
47 lines (41 loc) · 1.34 KB
/
release.groovy
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
#!/usr/bin/groovy
def ci (){
stage('build npm'){
sh 'npm install'
sh '''
export FABRIC8_WIT_API_URL="https://api.prod-preview.openshift.io/api/"
export FABRIC8_RECOMMENDER_API_URL="https://api-bayesian.dev.rdu2c.fabric8.io/api/v1/"
export FABRIC8_FORGE_API_URL="https://forge.api.prod-preview.openshift.io"
export FABRIC8_SSO_API_URL="https://sso.prod-preview.openshift.io/"
export FABRIC8_AUTH_API_URL="https://auth.prod-preview.openshift.io/api/"
export FABRIC8_REALM="fabric8"
npm run build:prod
'''
}
stage('unit test'){
sh './run_unit_tests.sh'
}
// commenting out functional tests until we look at this error in the pipeline: `geckodriver: setting permissions to 0755 for /home/jenkins/workspace/-projects_fabric8-ui_PR-668-`
// stage('functional test'){
// sh './run_functional_tests.sh'
// }
}
def buildImage(imageName){
stage('build snapshot image'){
sh "docker build -t ${imageName} -f Dockerfile.deploy ."
}
stage('push snapshot image'){
sh "docker push ${imageName}"
}
}
def updateDownstreamProjects(v){
pushPomPropertyChangePR {
propertyName = 'fabric8-ui.version'
projects = [
'fabric8io/fabric8-platform'
]
containerName = 'ui'
version = v
}
}
return this