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

Fix JFrog CLI's Chocolatey package deployment #857

Merged
merged 1 commit into from
Oct 13, 2020
Merged

Fix JFrog CLI's Chocolatey package deployment #857

merged 1 commit into from
Oct 13, 2020

Conversation

eyalbe4
Copy link
Contributor

@eyalbe4 eyalbe4 commented Oct 13, 2020

  • All tests passed. If this feature is not already covered by the tests, I added new tests.
  • This pull request is on the dev branch.
  • I used gofmt for formatting the code before submitting the pull request.

Fix for for an issue in the Jenkinsfile, causing the the deployment of newly added JFrog CLI Chocolatey package to fail.

@eyalbe4 eyalbe4 requested a review from yahavi October 13, 2020 07:54
@github-actions
Copy link
Contributor

CLA Assistant Lite bot All contributors have signed the CLA ✍️

def publishChocoPackage(version,jfrogCliRepoDir) {
downloadToolsCert()
def architecture = architectures.find { it.goos == "windows" && it.goarch == "adm64" }
def publishChocoPackage(version, jfrogCliRepoDir, architectures) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
def publishChocoPackage(version, jfrogCliRepoDir, architectures) {
def publishChocoPackage(version, jfrogCliRepoDir) {

stage('Build and Publish Chocolatey') {
publishChocoPackage(version,jfrogCliRepoDir)
publishChocoPackage(version, jfrogCliRepoDir, architectures)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure it is necessary

Suggested change
publishChocoPackage(version, jfrogCliRepoDir, architectures)
publishChocoPackage(version, jfrogCliRepoDir)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The publishChocoPackage function does not have access to the "global" architectures variable.
I also thought it does initially, but it doesn't.

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

Successfully merging this pull request may close these issues.

2 participants