-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathUsefull commands.txt
120 lines (95 loc) · 3.62 KB
/
Usefull commands.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
CORN Expression to Schedule the Jenkins Job
H/5 * * * *
sfdx force:auth:jwt:grant --clientid 3MVG9kBt168mda_9ciWRsdRkkz7aSRR5EFhyfJPN.S1SVUkLmw7RZ716t9sRJP1GUK8FQlj5I.4AhBGgYoPvY --username [email protected] --jwtkeyfile D:\UdemyCourses\Deployment\JWT\server.key -d --instanceurl https://login.salesforce.com/
Production Consumer Key -
3MVG9kBt168mda_9ciWRsdRkkz7aSRR5EFhyfJPN.S1SVUkLmw7RZ716t9sRJP1GUK8FQlj5I.4AhBGgYoPvY
Production Username -
Redirect URL -
http://localhost:1717/OauthRedirect
#Step1 -
Generate Private Key - openssl genrsa -des3 -passout pass:x123 -out server.pass.key 2048
Step2 -
Generate Key file using private key - openssl rsa -passin pass:x123 -in server.pass.key -out server.key
#Step3 -
Generate the certificate file - openssl req -new -key server.key -out server.csr
#Step4 -
Generate the SSL certificate - openssl x509 -req -sha256 -days 365 -in server.csr -signkey server.key -out server.crt
# Variables to Create in Environment variable
HUB_ORG_DH - username of the target org
SFDC_HOST_DH - the login url
CONNECTED_APP_CONSUMER_KEY_DH - the connected application client id of the target org
JWT_CRED_ID_DH
Consumer Key for Sandbox1:
3MVG9Fy_1ZngbXqOGr4_8wSrJuOeIso5iitLpULZGh7jAE7l92VmpOudzi7wgb1oLCa8iqsrpYGQjrUOLzkSy
Variables:
HUB_ORG_SB - [email protected]
PASSWORD_HDFC - Udemy@2021a6J7r7BBmiRO8HzUsUbOrPeIt
SFDC_HOST_SB - https://test.salesforce.com
CONNECTED_APP_CONSUMER_KEY_SB -
sfdx force:auth:jwt:grant --clientid 3MVG9Fy_1ZngbXqOGr4_8wSrJuOeIso5iitLpULZGh7jAE7l92VmpOudzi7wgb1oLCa8iqsrpYGQjrUOLzkSy --username [email protected] --jwtkeyfile D:\UdemyCourses\Deployment\JWT\server.key -d --instanceurl https://test.salesforce.com/
#Link to Download SFDX CLI in yml pipeline
https://developer.salesforce.com/media/salesforce-cli/sfdx/channels/stable/sfdx-linux-x64.tar.xz
{
"orgName": "TechFuge Indua Pvt. Ltd.",
"edition": "Enterprise",
"features": ["Communities", "ServiceCloud", "PersonAccounts", "MultiCurrency","B2BCommerce"],
"settings": {
"communitiesSettings": {
"enableNetworksEnabled": true
},
"mobileSettings": {
"enableS1EncryptedStoragePref2": true
},
"omniChannelSettings": {
"enableOmniChannel": true
},
"caseSettings": {
"systemUserEmail": "[email protected]"
}
},
"objectSettings": {
"opportunity": {
"sharingModel": "private",
"defaultRecordType": "default"
},
"account": {
"defaultRecordType": "default"
}
}
}
ssh -T [email protected]
branches:
development:
- step:
name: 'Deploy to test environment Message'
script:
- echo Deploying to test environment
- step:
name: 'Deploy to test environment'
deployment: test
# run the pipeline if changes were made to any of the actual metadata
condition:
changesets:
includePaths:
- "force-app/main/default/**"
- "src/**"
pull-requests:
development:
- step:
name: 'Run Step from PR'
script:
- echo 'I am from PR in Developmet branch'
- step:
name: 'Perform Validation due to PR'
script:
- echo 'I am from PR in Developmet branch'
master:
- step:
name: 'Run Step from PR'
script:
- echo 'I am from PR in master branch'
- step:
name: 'Perform Validation due to PR'
script:
- echo 'I am from PR in master branch'