File tree Expand file tree Collapse file tree 1 file changed +14
-13
lines changed Expand file tree Collapse file tree 1 file changed +14
-13
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,20 @@ ansiColor('xterm') {
100
100
}
101
101
}
102
102
103
+ stage(' Bump version' ){
104
+ sh ''' #!/bin/bash -ex
105
+ source ~/.nvm/nvm.sh
106
+ nvm use v6
107
+ npm version patch
108
+ version=`grep "version" package.json | head -1 | awk -F: '{ print $2 }' | sed 's/[", ]//g'`
109
+ echo $version > .version
110
+ git add package.json
111
+ git commit -m "build ${version}"
112
+ git tag -a "v${version}" -m "`git log -1 --format=%s`"
113
+ '''
114
+ packageJsonVersion = readFile ' .version'
115
+ }
116
+
103
117
stage(' Build' ){
104
118
withCredentials([usernamePassword(credentialsId : ' MESSAGE_DEMO_CLIENT' , passwordVariable : ' MESSAGE_DEMO_CLIENT_SECRET' , usernameVariable : ' MESSAGE_DEMO_CLIENT_ID' )]) {
105
119
sh ''' #!/bin/bash -ex
@@ -126,19 +140,6 @@ ansiColor('xterm') {
126
140
}
127
141
128
142
if (currentBuild. result == ' SUCCESS' ){
129
- stage(' Bump version' ){
130
- sh ''' #!/bin/bash -ex
131
- source ~/.nvm/nvm.sh
132
- nvm use v6
133
- npm version patch
134
- version=`grep "version" package.json | head -1 | awk -F: '{ print $2 }' | sed 's/[", ]//g'`
135
- echo $version > .version
136
- git add package.json
137
- git commit -m "build $packageJsonVerson"
138
- git tag -a "v$version" -m "`git log -1 --format=%s`"
139
- '''
140
- packageJsonVersion = readFile ' .version'
141
- }
142
143
143
144
archive ' packages/node_modules/@ciscospark/widget-message-meet/dist/**/*'
144
145
archive ' dist/**/*'
You can’t perform that action at this time.
0 commit comments