Skip to content

Commit

Permalink
feat: added deployment screepts execution after deploy service pack step
Browse files Browse the repository at this point in the history
  • Loading branch information
Yury Shkoda committed Aug 26, 2020
1 parent a7c2cc4 commit 0232a40
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/sasjs-deploy/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,15 @@ export async function deploy(targetName = null, preTargetToBuild = null) {
);
await deployToSasViyaWithServicePack(targetToBuild);
console.log("Job execution completed!");
return;
}

const deployScripts = getDeployScripts();

if (deployScripts.length === 0) console.log(chalk.redBright.bold(`Deployment failed. Enable 'deployServicePack' option or add deployment script to 'tgtDeployScripts'.`))
if (deployScripts.length === 0 && !targetToBuild.deployServicePack) {
console.log(chalk.redBright.bold(`Deployment failed. Enable 'deployServicePack' option or add deployment script to 'tgtDeployScripts'.`))

return;
}

const pathExistsInCurrentFolder = await folderExists(
path.join(process.cwd(), "sasjsbuild")
Expand Down

0 comments on commit 0232a40

Please sign in to comment.