Skip to content

Commit

Permalink
Zowe Suite v1.28.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zowe-robot authored May 11, 2022
2 parents d3b9448 + 46dfc3e commit a3033f1
Show file tree
Hide file tree
Showing 6 changed files with 217 additions and 23 deletions.
102 changes: 102 additions & 0 deletions .github/workflows/build-core.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
name: Build Core
on:
push:
branches:
- staging, master, rc
pull_request:
types: [opened, reopened, synchronize]

workflow_dispatch:
inputs:
ZLUX_APP_MANAGER:
description: 'zlux-app-manager PR number'
required: false
ZLUX_APP_SERVER:
description: 'zlux-app-server PR number'
required: false
ZLUX_BUILD:
description: 'zlux-build PR number'
required: false
ZLUX_PLATFORM:
description: 'zlux-platform PR number'
required: false

ZLUX_SERVER_FRAMEWORK:
description: 'zlux-server-framework PR number'
required: false
ZLUX_SHARED:
description: 'zlux-shared PR number'
required: false
DEFAULT_BRANCH:
description: 'please enter the default branch you would like to build with, default will be v2.x/staging'
required: false
default: 'staging'

jobs:
check-permission:
runs-on: ubuntu-latest
steps:
# this action will fail the whole workflow if permission check fails
- name: check permission
uses: zowe-actions/shared-actions/permission-check@main
with:
user: ${{ github.actor }}
github-repo: ${{ github.repository }}
github-token: ${{ secrets.GITHUB_TOKEN }}

build:
runs-on: ubuntu-latest
needs: check-permission
steps:

- name: '[Prep 1] Cache node modules'
uses: actions/cache@v2
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: |
~/.npm
~/.nvm/.cache
~/.nvm/versions
key: ${{ runner.os }}-build-cache-node-modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-cache-node-modules-
- name: '[Prep 2] Setup Node'
uses: actions/setup-node@v2
with:
node-version: 14

- name: '[Prep 3] Setup jFrog CLI'
uses: jfrog/setup-jfrog-cli@v2
env:
JF_ARTIFACTORY_1: ${{ secrets.JF_ARTIFACTORY_TOKEN }}

- name: '[Prep 4] prepare workflow'
uses: zowe-actions/zlux-builds/core/prepare@main
with:
github-user: ${{ secrets.ZOWE_ROBOT_USER }}
github-password: ${{ secrets.ZOWE_ROBOT_TOKEN }}
github-email: ${{ secrets.ZOWE_ROBOT_EMAIL }}
github-branch: ${{ github.event.inputs.BRANCH_NAME }}
default-base: ${{ github.event.inputs.DEFAULT_BRANCH }}

- name: '[Prep 5] build'
uses: zowe-actions/zlux-builds/core/build@main
with:
zlux-app-manager: ${{ github.event.inputs.ZLUX_APP_MANAGER }}
zlux-app-server: ${{ github.event.inputs.ZLUX_APP_SERVER }}
zlux-build: ${{ github.event.inputs.ZLUX_BUILD }}
zlux-platform: ${{ github.event.inputs.ZLUX_PLATFORM }}
zlux-server-framework: ${{ github.event.inputs.ZLUX_SERVER_FRAMEWORK }}
zlux-shared: ${{ github.event.inputs.ZLUX_SHARED }}

- name: '[Prep 6] packaging'
uses: zowe-actions/zlux-builds/core/package@main
with:
pax-ssh-username: ${{ secrets.SSH_MARIST_USERNAME }}
pax-ssh-password: ${{ secrets.SSH_MARIST_RACF_PASSWORD }}
pax-name: zlux-core

- name: '[Prep 7] deploy'
uses: zowe-actions/zlux-builds/core/deploy@main

4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to the Zlux App Server package will be documented in this file.

## v1.28.0

- Bugfix: App-server had a jobname prefix regression for several releases when it recieved an incorrect value for ZOWE_PREFIX when LAUNCH_COMPONENT_GROUPS included GATEWAY

## v1.27.0

- Bugfix: Fix development environment case in which app-server would crash without agent config being fully defined.
Expand Down
10 changes: 10 additions & 0 deletions bin/app-server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -188,5 +188,15 @@ then
else
ZLUX_SERVER_FILE=zluxServer.js
fi

# Weird bug in recent releases has app-server not having the same jobname prefix as other services.
# This only happens when LAUNCH_COMPONENT_GROUPS includes GATEWAY.
# Possibly due to hacks elsewhere that we weren't notified of https://github.com/zowe/zowe-install-packaging/commit/0ccb77afca8f6dd8e2782c25490283739ab2791c
if [ -n "${ZOWE_INSTANCE}" ]; then
if [[ "${ZOWE_PREFIX}" != *"${ZOWE_INSTANCE}" ]]; then
export ZOWE_PREFIX=${ZOWE_PREFIX}${ZOWE_INSTANCE}
fi
fi

{ __UNTAGGED_READ_MODE=V6 _BPX_JOBNAME=${ZOWE_PREFIX}DS1 ${NODE_BIN} --harmony ${ZOWE_LIB_DIR}/${ZLUX_SERVER_FILE} --config="${CONFIG_FILE}" "$@" 2>&1 ; echo "Ended with rc=$?" ; } | tee $ZLUX_NODE_LOG_FILE

14 changes: 0 additions & 14 deletions bin/convert-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -181,20 +181,6 @@ then
export ZWED_agent_jwt_fallback=$SSO_FALLBACK_TO_NATIVE_AUTH
fi
fi
if [ -z "$ZWED_agent_jwt_token_name" ]
then
if [ -n "$PKCS11_TOKEN_NAME" ]
then
export ZWED_agent_jwt_token_name=$PKCS11_TOKEN_NAME
fi
fi
if [ -z "$ZWED_agent_jwt_token_label" ]
then
if [ -n "$PKCS11_TOKEN_LABEL" ]
then
export ZWED_agent_jwt_token_label=$PKCS11_TOKEN_LABEL
fi
fi

# app server
if [ -z "$ZWED_node_https_port" ]
Expand Down
108 changes: 100 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion zss.apiml_static_reg.yaml.template
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
apiInfo:
- apiId: org.zowe.zss
gatewayUrl: api/v1
swaggerUrl: ${ZSS_PROTOCOL}://${ZWED_agent_host}:${ZSS_PORT}/api-docs/agent
swaggerUrl: https://${ZOWE_EXPLORER_HOST}:${ZOWE_ZLUX_SERVER_HTTPS_PORT:-8544}/api-docs/agent
# documentationUrl: TODO
catalogUiTiles:
zss:
Expand Down

0 comments on commit a3033f1

Please sign in to comment.