Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test demo #8

Open
wants to merge 58 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
b66560d
added debug log
edwsfdx Nov 5, 2019
444c808
ne more change
edwsfdx Nov 5, 2019
29d91d2
one more
edwsfdx Nov 5, 2019
88876c0
Jenkins file modified stage Authorize to Salesforce from sandbox to p…
edwsfdx Nov 6, 2019
8346cfe
added debug log
edwsfdx Nov 6, 2019
1a9534a
typo corrected
edwsfdx Nov 6, 2019
1f78133
broke something, undo logging
edwsfdx Nov 6, 2019
4f2afe4
/sfdx not found error
edwsfdx Nov 6, 2019
dac00c4
sfdx not found
edwsfdx Nov 6, 2019
1bc18e3
sfdx not found error
edwsfdx Nov 6, 2019
47fcee1
gave absolute path to sfdx
edwsfdx Nov 6, 2019
d5b4a33
return to the source
edwsfdx Nov 6, 2019
a266537
another shell call
edwsfdx Nov 6, 2019
26869bf
another try shell
edwsfdx Nov 6, 2019
d85884f
gave absolute path to sfdx
edwsfdx Nov 6, 2019
202261f
changes rolled back
edwsfdx Nov 6, 2019
1bea829
rollback changes
edwsfdx Nov 6, 2019
b78add1
try bat
edwsfdx Nov 6, 2019
120fd4e
try bat 2
edwsfdx Nov 6, 2019
77020e7
rollback
edwsfdx Nov 6, 2019
70d58c1
rc = bat returnStatus: true, script: "${toolbelt}"
edwsfdx Nov 7, 2019
898d977
rc = bat returnStatus: true, script: "${toolbelt}"
edwsfdx Nov 7, 2019
15c4f73
try bat 3
edwsfdx Nov 7, 2019
97a3011
try bat 4
edwsfdx Nov 7, 2019
078fe09
try bat 5
edwsfdx Nov 7, 2019
f57d097
try bat 5
edwsfdx Nov 7, 2019
33502c2
try bat 6
edwsfdx Nov 7, 2019
5468505
try bat 6
edwsfdx Nov 7, 2019
7db657d
try bat 7
edwsfdx Nov 7, 2019
c2fbf26
no toolbelt
edwsfdx Nov 7, 2019
a280f70
tollbelt back
edwsfdx Nov 7, 2019
b79562a
grrrr
edwsfdx Nov 7, 2019
f4c5449
grrrr
edwsfdx Nov 7, 2019
a8b94a7
tollbelt out
edwsfdx Nov 7, 2019
1a53785
def used
edwsfdx Nov 7, 2019
cb55c0c
def env vars
edwsfdx Nov 7, 2019
81d8648
def env vars
edwsfdx Nov 7, 2019
cb20357
def env vars
edwsfdx Nov 7, 2019
50b90fa
def used
edwsfdx Nov 7, 2019
f48cd92
def used
edwsfdx Nov 7, 2019
04c7ffb
env vars
edwsfdx Nov 7, 2019
9a10f5a
env vars
edwsfdx Nov 7, 2019
f3cbc1a
hardcoded vars
edwsfdx Nov 7, 2019
9aae399
elaborate on env
edwsfdx Nov 8, 2019
034fe69
elaborate on env more
edwsfdx Nov 8, 2019
b34c73e
One line of debug removed
zhu-github Nov 8, 2019
04ae0a6
Merge pull request #1 from edwsfdx/demoBranch
edwsfdx Nov 8, 2019
83b0185
JJinling Test
zhu-github Nov 12, 2019
6c375dd
Merge pull request #2 from edwsfdx/Jinling
edwsfdx Nov 12, 2019
aecc2a2
Broken Test
zhu-github Nov 12, 2019
2fc9c2b
Merge pull request #3 from edwsfdx/Jinling
edwsfdx Nov 12, 2019
9ed1be2
Fix Broken
zhu-github Nov 12, 2019
c42f16a
Merge pull request #4 from edwsfdx/Jinling
edwsfdx Nov 12, 2019
77a92cd
debug logging removed
edwsfdx Nov 12, 2019
a08012e
Test in Team
zhu-github Nov 14, 2019
89fc3ae
Fix Broken
zhu-github Nov 14, 2019
b400cd3
TestDemo Again
zhu-github Nov 14, 2019
dc6b81d
Fix Again
zhu-github Nov 14, 2019
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
8 changes: 5 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ node {


def toolbelt = tool 'toolbelt'
def sfdxexe = 'C:\\Program Files\\Salesforce CLI\\bin\\sfdx'


// -------------------------------------------------------------------------
Expand All @@ -32,7 +33,8 @@ node {
// -------------------------------------------------------------------------

stage('Authorize to Salesforce') {
rc = command "${toolbelt}/sfdx force:auth:jwt:grant --instanceurl https://test.salesforce.com --clientid ${SF_CONSUMER_KEY} --jwtkeyfile ${server_key_file} --username ${SF_USERNAME} --setalias UAT"

rc = bat returnStatus: true, script: "\"${sfdxexe}\" force:auth:jwt:grant --instanceurl https://login.salesforce.com --clientid ${SF_CONSUMER_KEY} --jwtkeyfile ${server_key_file} --username ${SF_USERNAME} --setalias UAT"
if (rc != 0) {
error 'Salesforce org authorization failed.'
}
Expand All @@ -44,7 +46,7 @@ node {
// -------------------------------------------------------------------------

stage('Deploy and Run Tests') {
rc = command "${toolbelt}/sfdx force:mdapi:deploy --wait 10 --deploydir ${DEPLOYDIR} --targetusername UAT --testlevel ${TEST_LEVEL}"
rc = bat returnStatus: true, script: "\"${sfdxexe}\" force:mdapi:deploy --wait 10 --deploydir ${DEPLOYDIR} --targetusername UAT --testlevel ${TEST_LEVEL}"
if (rc != 0) {
error 'Salesforce deploy and test run failed.'
}
Expand All @@ -56,7 +58,7 @@ node {
// -------------------------------------------------------------------------

//stage('Check Only Deploy') {
// rc = command "${toolbelt}/sfdx force:mdapi:deploy --checkonly --wait 10 --deploydir ${DEPLOYDIR} --targetusername UAT --testlevel ${TEST_LEVEL}"
// rc = bat returnStatus: true, script: "\"${sfdxexe}\" force:mdapi:deploy --checkonly --wait 10 --deploydir ${DEPLOYDIR} --targetusername UAT --testlevel ${TEST_LEVEL}"
// if (rc != 0) {
// error 'Salesforce deploy failed.'
// }
Expand Down
3 changes: 3 additions & 0 deletions src/classes/MyClass.cls
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ public with sharing class MyClass {
}

public String getAppVersion() {

System.debug('Test in Team'); //fix

return '1.0.0';
}
}