mirror of
https://github.com/jlengrand/sample-node-api.git
synced 2026-03-10 08:41:23 +00:00
Remove debug and commented out code
Signed-off-by: stevenhorsman <steven@uk.ibm.com>
This commit is contained in:
committed by
Nakul Manchanda
parent
5a6e9f08ae
commit
37ef8d0074
@@ -37,10 +37,6 @@ echo "[${SCRIPT_NAME}] cleaning PAX workspace ..."
|
||||
rm -fr "${PAX_WORKSPACE_DIR}/content"
|
||||
mkdir -p "${PAX_WORKSPACE_DIR}/content"
|
||||
|
||||
# copy plugin definition files
|
||||
# echo "[${SCRIPT_NAME}] copying plugin definitions ..."
|
||||
# cp -r plugin-definition "${PAX_WORKSPACE_DIR}/content"
|
||||
|
||||
# build client
|
||||
echo "[${SCRIPT_NAME}] building client ..."
|
||||
cd "dist"
|
||||
@@ -48,7 +44,7 @@ npm install
|
||||
|
||||
cd "${ROOT_DIR}"
|
||||
|
||||
# copy explorer-jes to target folder
|
||||
# copy sample-node-api to target folder
|
||||
echo "[${SCRIPT_NAME}] copying sample node api backend ..."
|
||||
mkdir -p "${PAX_WORKSPACE_DIR}/content"
|
||||
cp README.md "${PAX_WORKSPACE_DIR}/content"
|
||||
@@ -56,9 +52,6 @@ cp package.json "${PAX_WORKSPACE_DIR}/content"
|
||||
cp package-lock.json "${PAX_WORKSPACE_DIR}/content"
|
||||
cp -r dist/. "${PAX_WORKSPACE_DIR}/content"
|
||||
|
||||
echo "Current contents:"
|
||||
find "${PAX_WORKSPACE_DIR}/content" -print
|
||||
|
||||
# copy start script to target folder
|
||||
echo "[${SCRIPT_NAME}] copying startup script ..."
|
||||
mkdir -p "${PAX_WORKSPACE_DIR}/content/bin"
|
||||
|
||||
34
Jenkinsfile
vendored
34
Jenkinsfile
vendored
@@ -55,35 +55,6 @@ node('ibm-jenkins-slave-dind') {
|
||||
|
||||
pipeline.build()
|
||||
|
||||
// // we have a custom build command
|
||||
// pipeline.build(
|
||||
// operation: {
|
||||
// ansiColor('xterm') {
|
||||
// pipeline.nvmShell "npm run prod"
|
||||
// }
|
||||
// }
|
||||
// )
|
||||
|
||||
// pipeline.test(
|
||||
// name : 'Unit',
|
||||
// junit : "target/report.xml",
|
||||
// cobertura : [
|
||||
// coberturaReportFile : "coverage/cobertura-coverage.xml",
|
||||
// // if coverage check failed, the pipeline will be marked as UNSTABLE, which
|
||||
// // will block publish/release. So we overwrite default and set to false here.
|
||||
// // FIXME: ideally this should set to true (using default by remove this line)
|
||||
// autoUpdateStability : false,
|
||||
// fileCoverageTargets : '100, 0, 0',
|
||||
// classCoverageTargets : '85, 0, 0',
|
||||
// methodCoverageTargets : '80, 0, 0',
|
||||
// lineCoverageTargets : '80, 0, 0',
|
||||
// conditionalCoverageTargets: '70, 0, 0',
|
||||
// ],
|
||||
// htmlReports : [
|
||||
// [dir: "coverage/lcov-report", files: "index.html", name: "Report: Code Coverage"],
|
||||
// ],
|
||||
// )
|
||||
|
||||
// we need sonar scan
|
||||
// failBuild set to false whilst investigating https://github.com/zowe/zlux/issues/285
|
||||
pipeline.sonarScan(
|
||||
@@ -106,9 +77,6 @@ node('ibm-jenkins-slave-dind') {
|
||||
],
|
||||
allowPublishWithoutTest: true // There are no tests
|
||||
)
|
||||
|
||||
// define we need release stage
|
||||
// pipeline.release()
|
||||
|
||||
|
||||
pipeline.end()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user