Skip to content

Commit 57132aa

Browse files
Merge pull request #128 from oracle/develop
Merging WebLogic Remote Console integration
2 parents 231672a + f93f82b commit 57132aa

File tree

391 files changed

+28198
-8018
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

391 files changed

+28198
-8018
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,6 @@ lerna-debug.log
105105
# System Files
106106
.DS_Store
107107
Thumbs.db
108+
109+
# Not yet ready locations
110+
/integration-tests

Jenkinsfile

Lines changed: 15 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@ pipeline {
1010
GLOBAL_AGENT_HTTPS_PROXY = "${WKTUI_PROXY}"
1111
WKTUI_DEV_PROXY = "${WKTUI_PROXY}"
1212
WKTUI_BUILD_EMAIL = sh(returnStdout: true, script: "echo ${env.WKTUI_BUILD_NOTIFY_EMAIL} | sed -e 's/^[[:space:]]*//'")
13-
WKTUI_PROXY_HOSTPORT = sh(returnStdout: true, script: "echo ${env.WKTUI_PROXY} | sed -e 's,http://,,'")
1413
WKTUI_PROXY_HOST = "${env.ORACLE_HTTP_PROXY_HOST}"
1514
WKTUI_PROXY_PORT = "${env.ORACLE_HTTP_PROXY_PORT}"
1615

1716
npm_registry = "${env.ARTIFACTORY_NPM_REPO}"
1817
npm_noproxy = "${env.ORACLE_NO_PROXY}"
19-
node_version = "16.13.0"
18+
node_version = "16.15.1"
2019

2120
project_name = "$JOB_NAME"
2221
version_prefix = sh(returnStdout: true, script: 'cat electron/package.json | grep version | awk \'match($0, /[0-9]+.[0-9]+.[0-9]+/) { print substr( $0, RSTART, RLENGTH )}\'').trim()
@@ -110,15 +109,6 @@ pipeline {
110109
sh 'cp ${WORKSPACE}/.npmrc ${WORKSPACE}/electron/.npmrc'
111110
}
112111
}
113-
stage('Linux Update NPM') {
114-
steps {
115-
sh 'cp -f ${WORKSPACE}/.npmrc ${linux_node_dir}/lib/.npmrc'
116-
sh 'cd ${linux_node_dir}/lib; PATH="${linux_node_dir}/bin:$PATH" ${linux_npm_exe} install npm; cd ${WORKSPACE}'
117-
sh 'rm -f ${linux_node_dir}/lib/.npmrc'
118-
sh 'PATH="${linux_node_dir}/bin:$PATH" ${linux_node_exe} --version'
119-
sh 'PATH="${linux_node_dir}/bin:$PATH" ${linux_npm_exe} --version'
120-
}
121-
}
122112
stage('Linux Install Project Dependencies') {
123113
steps {
124114
sh 'cat ${WORKSPACE}/webui/.npmrc'
@@ -203,7 +193,7 @@ pipeline {
203193
}
204194
}
205195
stage('MacOS Build') {
206-
agent { label 'macosx'}
196+
agent { label('wls-mini1 || wls-mini2') }
207197
environment {
208198
mac_node_dir_name = "node-v${node_version}-darwin-x64"
209199
mac_node_installer = "node-v${node_version}-darwin-x64.tar.gz"
@@ -219,6 +209,7 @@ pipeline {
219209
sh 'env|sort'
220210
echo "file version = ${version_number}"
221211
echo "is_release = ${is_release}"
212+
sh "uname -a"
222213
}
223214
}
224215
stage('MacOS Checkout') {
@@ -254,15 +245,6 @@ pipeline {
254245
sh 'cp ${WORKSPACE}/.npmrc ${WORKSPACE}/electron/.npmrc'
255246
}
256247
}
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-
}
266248
stage('MacOS Install Project Dependencies') {
267249
steps {
268250
sh 'cat ${WORKSPACE}/webui/.npmrc'
@@ -298,13 +280,21 @@ pipeline {
298280
}
299281
stage('MacOS Build Installers') {
300282
steps {
301-
sh 'cd ${WORKSPACE}/electron; PATH="${mac_node_dir}/bin:$PATH" HTTPS_PROXY=${WKTUI_PROXY} CSC_IDENTITY_AUTO_DISCOVERY=false ${mac_npm_exe} run build'
283+
sh '''
284+
cd "${WORKSPACE}/electron"
285+
PATH="${mac_node_dir}/bin:$PATH" HTTPS_PROXY=${WKTUI_PROXY} CSC_IDENTITY_AUTO_DISCOVERY=false ${mac_npm_exe} run build:jet
286+
PATH="${mac_node_dir}/bin:$PATH" HTTPS_PROXY=${WKTUI_PROXY} CSC_IDENTITY_AUTO_DISCOVERY=false ${mac_npm_exe} run install-tools
287+
PATH="${mac_node_dir}/bin:$PATH" HTTPS_PROXY=${WKTUI_PROXY} CSC_IDENTITY_AUTO_DISCOVERY=false ${mac_npm_exe} run build:installer -- --mac --x64 --arm64
288+
cd "${WORKSPACE}"
289+
'''
302290
archiveArtifacts 'dist/*.dmg'
303291
archiveArtifacts 'dist/*.zip'
304292
archiveArtifacts "dist/*.blockmap"
305293
archiveArtifacts "dist/latest-mac.yml"
306294
sh 'ditto -c -k --sequesterRsrc --keepParent "$WORKSPACE/dist/mac/WebLogic Kubernetes Toolkit UI.app" "WebLogic Kubernetes Toolkit UI.app.zip"'
307295
archiveArtifacts "WebLogic Kubernetes Toolkit UI.app.zip"
296+
sh 'ditto -c -k --sequesterRsrc --keepParent "$WORKSPACE/dist/mac-arm64/WebLogic Kubernetes Toolkit UI.app" "WebLogic Kubernetes Toolkit UI.arm64.app.zip"'
297+
archiveArtifacts "WebLogic Kubernetes Toolkit UI.arm64.app.zip"
308298
}
309299
}
310300
}
@@ -368,13 +358,6 @@ pipeline {
368358
bat 'copy /Y "%WORKSPACE%\\.npmrc" "%WORKSPACE%\\electron\\.npmrc"'
369359
}
370360
}
371-
stage('Windows Update NPM') {
372-
steps {
373-
bat 'copy /Y "%WORKSPACE%\\.npmrc" "%windows_node_dir%\\.npmrc"'
374-
bat 'cd "%windows_node_dir%" & set "PATH=%windows_node_dir%;%PATH%" & "%windows_npm_exe%" install npm@latest & cd "%WORKSPACE%"'
375-
bat 'del /F /Q "%windows_node_dir%\\.npmrc"'
376-
}
377-
}
378361
stage('Windows Install Project Dependencies') {
379362
steps {
380363
bat 'cd "%WORKSPACE%\\electron" & set "PATH=%windows_node_dir%;%PATH%" & set HTTPS_PROXY=%ORACLE_HTTP_PROXY% & "%windows_npm_exe%" install & cd "%WORKSPACE%"'
@@ -395,6 +378,9 @@ pipeline {
395378
stage('Windows Build Installers') {
396379
steps {
397380
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%"'
398384
archiveArtifacts 'dist/*.exe'
399385
archiveArtifacts "dist/*.blockmap"
400386
archiveArtifacts "dist/latest.yml"

0 commit comments

Comments
 (0)