Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions .github/workflows/agentforce-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ jobs:
run: |
sf project deploy start --target-org=so-ci --manifest=manifestAgent.xml --wait=30

- name: 'Deploy Agentforce Tests to org'
run: |
sf project deploy start --target-org=so-ci --metadata=AiEvaluationDefinition --wait=30

- name: 'Capture org auth URL'
id: capture-org
run: |
Expand Down Expand Up @@ -252,9 +256,13 @@ jobs:
echo "${{ secrets.DEVHUB_SFDX_AUTH_URL }}" > ./authfile
sf org login sfdx-url --sfdxurlfile=authfile --alias=devhub

- name: Return org to pool
- name: Authenticate to org
run: |
AUTH_URL=$(cat auth-artifact/auth-url.txt)
echo "$AUTH_URL" > ./org-auth.txt
sf org login sfdx-url --sfdxurlfile=org-auth.txt --alias=so-ci
pnpm sfp pool delete --targetdevhubusername=devhub --tag=ci-pool --myorg=so-ci
echo "$AUTH_URL" > ./authfileci
sf org login sfdx-url --sfdxurlfile=authfileci --alias=so-ci

- name: Return org to pool
run: |
ORG_ID=$(sf org display -o so-ci --json | jq -r '.result.id' | cut -c 1-15)
sf data update record -o devhub --sobject ScratchOrgInfo --where "ScratchOrg='$ORG_ID'" --values "Allocation_status__c='Available'"
5 changes: 3 additions & 2 deletions config/pools/ci-pool.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"tag": "ci-pool",
"maxAllocation": 1,
"maxAllocation": 2,
"expiry": 10,
"batchSize": 10,
"configFilePath": "config/project-scratch-def.json",
"relaxAllIPRanges": true,
"installAll": true,
"enableSourceTracking": true,
"retryOnFailure": true,
"succeedOnDeploymentErrors": true
"succeedOnDeploymentErrors": true,
"postDeploymentScriptPath": "scripts/postDeployment.sh"
}
3 changes: 2 additions & 1 deletion config/pools/dev-pool.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
"installAll": true,
"enableSourceTracking": true,
"retryOnFailure": true,
"succeedOnDeploymentErrors": true
"succeedOnDeploymentErrors": true,
"postDeploymentScriptPath": "scripts/postDeployment.sh"
}
4 changes: 0 additions & 4 deletions manifestAgent.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,5 @@
<members>*</members>
<name>BotTemplate</name>
</types>
<types>
<members>*</members>
<name>AiEvaluationDefinition</name>
</types>
<version>65.0</version>
</Package>
2 changes: 2 additions & 0 deletions scripts/retrieveAgentAndTest.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sf project retrieve start -o so-dev --manifest manifestAgent.xml
sf project retrieve start -o so-dev --metadata AiEvaluationDefinition
Loading