Skip to content

Commit

Permalink
no retry
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidGOrtega committed May 23, 2022
1 parent 91b366f commit ae75da2
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/drivers/bitbucket_cloud.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,23 +148,23 @@ class BitbucketCloud {
await exec(`chmod -R 777 ${workdir}`);

const os = process.platform === 'darwin' ? 'macos' : 'linux';
if (os === 'linux') {
await exec(`
sudo tee /usr/bin/retry << 'EOF'
#!/bin/bash
exec env GIT_LFS_SKIP_SMUDGE=1 "$\{@:2}"
EOF'
`);
await exec(`chmod 777 /usr/bin/retry`);
}
// if (os === 'linux') {
// await exec(`
// sudo tee /usr/bin/retry << 'EOF'
// #!/bin/bash
// exec env GIT_LFS_SKIP_SMUDGE=1 "$\{@:2}"
// EOF'
// `);
// await exec(`chmod 777 /usr/bin/retry`);
// }

const command = `java -jar \
-Dbitbucket.pipelines.runner.account.uuid=${accountId} \
-Dbitbucket.pipelines.runner.repository.uuid=${repoId} \
-Dbitbucket.pipelines.runner.uuid=${uuid} \
-Dbitbucket.pipelines.runner.oauth.client.id=${id} \
-Dbitbucket.pipelines.runner.oauth.client.secret=${secret} \
-Dbitbucket.pipelines.runner.directory.working=${workdir}/temp \
-Dbitbucket.pipelines.runner.directory.working=./temp \
-Dbitbucket.pipelines.runner.runtime=${os}-bash \
-Dbitbucket.pipelines.runner.docker.uri=unix:///var/run/docker.sock \
-Dbitbucket.pipelines.runner.scheduled.state.update.initial.delay.seconds=0 \
Expand Down

0 comments on commit ae75da2

Please sign in to comment.