Skip to content

Commit a200943

Browse files
committed
Added yaml option for path (#25)
1 parent 0cd5a19 commit a200943

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

scripts/deploying.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ $(document).ready(() => {
102102
settings.runApexTests = 'false';
103103
settings.scratchOrgDef = 'config/project-scratch-def.json';
104104
settings.showScratchOrgUrl = 'true';
105+
settings.openPath = '';
105106

106107
},
107108
success: (yamlFileDataResponse) => {
@@ -123,7 +124,8 @@ $(document).ready(() => {
123124
settings.runApexTests = doc['run-apex-tests'];
124125
settings.scratchOrgDef = doc['scratch-org-def'];
125126
settings.showScratchOrgUrl = doc['show-scratch-org-url'];
126-
127+
settings.openPath = doc['open-path'];
128+
127129
const dataPlanCount = doc['data-plans'].length;
128130

129131
if (dataPlanCount > 0) {

views/pages/repo.ejs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
run-apex-tests: true
1919
delete-scratch-org: false
2020
show-scratch-org-url: true
21+
open-path: c/YourCustomApp.app
2122
data-plans:
2223
- ./data/YourCustomObject1__c-plan.json
2324
- ./data/YourCustomObject2__c-plan.json

worker.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,10 @@ async.whilst(
178178

179179
settings.testScript = `${settings.startingDirectory}cd ${settings.directory};export FORCE_SHOW_SPINNER=;sfdx force:apex:test:run -r human --json | jq -r .result | jq -r .summary | jq -r .outcome`;
180180
settings.urlScript = `${settings.startingDirectory}cd ${settings.directory};export FORCE_SHOW_SPINNER=;echo $(sfdx force:org:display --json | jq -r .result.instanceUrl)"/secur/frontdoor.jsp?sid="$(sfdx force:org:display --json | jq -r .result.accessToken)`;
181+
// add path if specified in yaml
182+
if (settings.openPath) {
183+
settings.urlScript += `"&retURL="${settings.openPath}`;
184+
}
181185
settings.scratchOrgUrl = '';
182186
settings.stderr = '';
183187
settings.stdout = '';

0 commit comments

Comments
 (0)