You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Jenkinsfile
+4-28Lines changed: 4 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -109,15 +109,6 @@ pipeline {
109
109
sh 'cp ${WORKSPACE}/.npmrc ${WORKSPACE}/electron/.npmrc'
110
110
}
111
111
}
112
-
stage('Linux Update NPM') {
113
-
steps {
114
-
sh 'cp -f ${WORKSPACE}/.npmrc ${linux_node_dir}/lib/.npmrc'
115
-
sh 'cd ${linux_node_dir}/lib; PATH="${linux_node_dir}/bin:$PATH" ${linux_npm_exe} install npm; cd ${WORKSPACE}'
116
-
sh 'rm -f ${linux_node_dir}/lib/.npmrc'
117
-
sh 'PATH="${linux_node_dir}/bin:$PATH" ${linux_node_exe} --version'
118
-
sh 'PATH="${linux_node_dir}/bin:$PATH" ${linux_npm_exe} --version'
119
-
}
120
-
}
121
112
stage('Linux Install Project Dependencies') {
122
113
steps {
123
114
sh 'cat ${WORKSPACE}/webui/.npmrc'
@@ -254,15 +245,6 @@ pipeline {
254
245
sh 'cp ${WORKSPACE}/.npmrc ${WORKSPACE}/electron/.npmrc'
255
246
}
256
247
}
257
-
stage('MacOS Update NPM') {
258
-
steps {
259
-
sh 'cp -f ${WORKSPACE}/.npmrc ${mac_node_dir}/lib/.npmrc'
260
-
sh 'cd ${mac_node_dir}/lib; PATH="${mac_node_dir}/bin:$PATH" ${mac_npm_exe} install npm; cd ${WORKSPACE}'
261
-
sh 'rm -f ${mac_node_dir}/lib/.npmrc'
262
-
sh 'PATH="${mac_node_dir}/bin:$PATH" ${mac_node_exe} --version'
263
-
sh 'PATH="${mac_node_dir}/bin:$PATH" ${mac_npm_exe} --version'
264
-
}
265
-
}
266
248
stage('MacOS Install Project Dependencies') {
267
249
steps {
268
250
sh 'cat ${WORKSPACE}/webui/.npmrc'
@@ -376,13 +358,6 @@ pipeline {
376
358
bat 'copy /Y "%WORKSPACE%\\.npmrc" "%WORKSPACE%\\electron\\.npmrc"'
377
359
}
378
360
}
379
-
stage('Windows Update NPM') {
380
-
steps {
381
-
bat 'copy /Y "%WORKSPACE%\\.npmrc" "%windows_node_dir%\\.npmrc"'
382
-
bat 'cd "%windows_node_dir%" & set "PATH=%windows_node_dir%;%PATH%" & "%windows_npm_exe%" install npm@latest & cd "%WORKSPACE%"'
383
-
bat 'del /F /Q "%windows_node_dir%\\.npmrc"'
384
-
}
385
-
}
386
361
stage('Windows Install Project Dependencies') {
387
362
steps {
388
363
bat 'cd "%WORKSPACE%\\electron" & set "PATH=%windows_node_dir%;%PATH%" & set HTTPS_PROXY=%ORACLE_HTTP_PROXY% & "%windows_npm_exe%" install & cd "%WORKSPACE%"'
@@ -402,9 +377,10 @@ pipeline {
402
377
}
403
378
stage('Windows Build Installers') {
404
379
steps {
405
-
bat 'cd "%WORKSPACE%\\webui" & set "PATH=%windows_node_dir%;%PATH%" & set "HTTPS_PROXY=%WKTUI_PROXY%" & "node_modules\\.bin\\ojet" build web --release & cd "%WORKSPACE%"'
406
-
bat 'cd "%WORKSPACE%\\electron" & set "PATH=%windows_node_dir%;%PATH%" & set "HTTPS_PROXY=%WKTUI_PROXY%" & "%windows_node_exe%" scripts/installTools.js & cd "%WORKSPACE%"'
407
-
bat 'cd "%WORKSPACE%\\electron" & set "PATH=%windows_node_dir%;%PATH%" & set "HTTPS_PROXY=%WKTUI_PROXY%" & "node_modules\\.bin\\electron-builder" -p never & cd "%WORKSPACE%"'
380
+
bat 'cd "%WORKSPACE%\\electron" & set "PATH=%windows_node_dir%;%PATH%" & set "HTTPS_PROXY=%WKTUI_PROXY%" & "%windows_npm_exe%" run build & cd "%WORKSPACE%"'
381
+
// bat 'cd "%WORKSPACE%\\webui" & set "PATH=%windows_node_dir%;%PATH%" & set "HTTPS_PROXY=%WKTUI_PROXY%" & "node_modules\\.bin\\ojet" build web --release & cd "%WORKSPACE%"'
382
+
// bat 'cd "%WORKSPACE%\\electron" & set "PATH=%windows_node_dir%;%PATH%" & set "HTTPS_PROXY=%WKTUI_PROXY%" & "%windows_node_exe%" scripts/installTools.js & cd "%WORKSPACE%"'
383
+
// bat 'cd "%WORKSPACE%\\electron" & set "PATH=%windows_node_dir%;%PATH%" & set "HTTPS_PROXY=%WKTUI_PROXY%" & "node_modules\\.bin\\electron-builder" -p never & cd "%WORKSPACE%"'
0 commit comments