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

The jar files pushed are corrupted #77

Open
juan-carlos-duarte opened this issue Nov 12, 2020 · 0 comments
Open

The jar files pushed are corrupted #77

juan-carlos-duarte opened this issue Nov 12, 2020 · 0 comments

Comments

@juan-carlos-duarte
Copy link

#####################

diccionary: AnyObject = {};

if (extensionFile === '.jar') {
readerStreamer = fs.readFileSync(fullPath);
} else {
readerStreamer = fs.readFileSync(fullPath, 'utf8');

      }

##########################

async pushCode(bitbucketDTO: BitbucketDTO, diccionary: AnyObject) {

console.log("Posting with diccionary " + diccionary);

return await BitBucketClient(bitbucketDTO.email, bitbucketDTO.password).repositories.createSrcFileCommit({
  repo_slug: bitbucketDTO.name,
  message: "Initial commit",
  author: bitbucketDTO.email,
  branch: "master",
  workspace: bitbucketDTO.workspace,
  _body: diccionary
})

}
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant