forked from fabric8-ui/fabric8-recommender
-
Notifications
You must be signed in to change notification settings - Fork 0
/
release.groovy
46 lines (41 loc) · 881 Bytes
/
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
#!/usr/bin/groovy
def ci (){
stage('build'){
sh 'npm install'
sh 'npm run build'
}
stage('functional test'){
sh 'npm run test:unit'
}
}
def cd (b){
stage('fix git repo'){
sh './fix-git-repo.sh'
}
stage('build'){
sh 'npm install'
sh 'npm run build'
}
// stage('functional test'){
// sh './run_functional_tests.sh'
// }
stage('release'){
def published = npmRelease{
branch = b
}
return published
}
}
def updateDownstreamProjects(v){
echo 'we would Update Downstream Projects'
pushPackageJSONChangePR{
propertyName = 'fabric8-stack-analysis-ui'
projects = [
'fabric8-ui/fabric8-npm-dependencies'
]
version = v
containerName = 'ui'
autoMerge = true
}
}
return this