Skip to content

Commit f217c9a

Browse files
authored
Merge pull request #25 from screwdriver-cd/commands
[4] Checkout command name should be sd-checkout-command
2 parents 2eeca4d + 72403b6 commit f217c9a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ class BitbucketScm extends Scm {
496496
command.push(`git merge ${config.sha}`);
497497
}
498498

499-
return Promise.resolve({ name: 'checkout-code', command: command.join(' && ') });
499+
return Promise.resolve({ name: 'sd-checkout-code', command: command.join(' && ') });
500500
}
501501

502502
/**

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"hoek": "^4.1.0",
4343
"joi": "^9.2.0",
4444
"request": "^2.75.0",
45-
"screwdriver-data-schema": "^15.3.0",
45+
"screwdriver-data-schema": "^15.4.0",
4646
"screwdriver-scm-base": "^2.4.0"
4747
}
4848
}

test/data/commands.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"name": "checkout-code",
2+
"name": "sd-checkout-code",
33
"command": "echo Cloning https://bitbucket.org/screwdriver-cd/scm-bitbucket, on branch master && git clone --quiet --progress --branch master https://bitbucket.org/screwdriver-cd/scm-bitbucket && cd scm-bitbucket && echo Reset to SHA 40171b678527 && git reset --hard 40171b678527 && echo Setting user name and user email && git config user.name sd-buildbot && git config user.email dev-null@screwdriver.cd"
44
}

test/data/prCommands.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"name": "checkout-code",
2+
"name": "sd-checkout-code",
33
"command": "echo Cloning https://bitbucket.org/screwdriver-cd/scm-bitbucket, on branch master && git clone --quiet --progress --branch master https://bitbucket.org/screwdriver-cd/scm-bitbucket && cd scm-bitbucket && echo Reset to SHA master && git reset --hard master && echo Setting user name and user email && git config user.name sd-buildbot && git config user.email dev-null@screwdriver.cd && echo Fetching PR and merging with master && git fetch origin prBranch && git merge 40171b678527"
44
}

0 commit comments

Comments
 (0)