Created manifest file

Signed-off-by: Jadin Luong <Jadin.Luong@ibm.com>
This commit is contained in:
Jadin Luong
2020-11-24 15:49:18 -05:00
parent 39d0e670f9
commit 2d4ec240f9
2 changed files with 34 additions and 0 deletions

View File

@@ -50,6 +50,21 @@ cp -r dist/. "${PAX_WORKSPACE_DIR}/content"
# move content to another folder
rm -fr "${PAX_WORKSPACE_DIR}/ascii"
mkdir -p "${PAX_WORKSPACE_DIR}/ascii"
# update build information
# BRANCH_NAME and BUILD_NUMBER is Jenkins environment variable
commit_hash=$(git rev-parse --verify HEAD)
current_timestamp=$(date +%s%3N)
sed -e "s|{{build\.branch}}|${BRANCH_NAME}|g" \
-e "s|{{build\.number}}|${BUILD_NUMBER}|g" \
-e "s|{{build\.commitHash}}|${commit_hash}|g" \
-e "s|{{build\.timestamp}}|${current_timestamp}|g" \
"${PAX_WORKSPACE_DIR}/ascii/manifest.yaml" > "${PAX_WORKSPACE_DIR}/ascii/manifest.yaml.tmp"
mv "${PAX_WORKSPACE_DIR}/ascii/manifest.yaml.tmp" "${PAX_WORKSPACE_DIR}/ascii/manifest.yaml"
echo "[${SCRIPT_NAME}] manifest:"
cat "${PAX_WORKSPACE_DIR}/ascii/manifest.yaml"
echo
rsync -rv \
--include '*.json' --include '*.html' --include '*.jcl' --include '*.template' \
--exclude '*.zip' --exclude '*.png' --exclude '*.tgz' --exclude '*.tar.gz' --exclude '*.pax' \

19
manifest.yaml Normal file
View File

@@ -0,0 +1,19 @@
name: sample-node-api
id: org.zowe.sample-node-api
title: Sample Node API
description: A Sample Node API extension for Zowe
license: EPL-2.0
repository:
type: git
url: https://github.com/zowe/sample-node-api.git
build:
branch: "{{build.branch}}"
number: "{{build.number}}"
commitHash: "{{build.commitHash}}"
timestamp: "{{build.timestamp}}"
commands:
start: bin/start.sh
configure: bin/configure.sh
apimlServices:
static:
- file: sample-node-api.yml