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

feat (npmExecuteScripts) enhance multi package publish from npm builds #4579

Merged
merged 17 commits into from
Oct 9, 2023

Conversation

anilkeshav27
Copy link
Member

Changes

  • Tests
  • Documentation

@anilkeshav27 anilkeshav27 requested a review from a team as a code owner September 19, 2023 20:36
pkg/npm/publish.go Show resolved Hide resolved
cmd/artifactPrepareVersion.go Show resolved Hide resolved
Copy link
Member

@jliempt jliempt left a comment

Choose a reason for hiding this comment

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

Currently, it is only possible to exclude packages from publishing:
https://github.com/SAP/jenkins-library/blob/master/cmd/npmExecuteScripts.go#L82
When using buildDescriptorList, all package.jsons will be found.

Do the current changes completely fulfill the original requirements?

@anilkeshav27
Copy link
Member Author

Currently, it is only possible to exclude packages from publishing: https://github.com/SAP/jenkins-library/blob/master/cmd/npmExecuteScripts.go#L82 When using buildDescriptorList, all package.jsons will be found.

Do the current changes completely fulfill the original requirements?

the last push should respect the build descriptor when provided, if not it will search the build descriptor execlude list

@jliempt
Copy link
Member

jliempt commented Oct 9, 2023

/it-go

@jliempt jliempt enabled auto-merge (squash) October 9, 2023 07:10
@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 9, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@jliempt jliempt merged commit 40e13f1 into master Oct 9, 2023
@jliempt jliempt deleted the anil/npmPublishMultiplePackages branch October 9, 2023 07:21
daskuznetsova pushed a commit to daskuznetsova/jenkins-library that referenced this pull request Oct 13, 2023
SAP#4579)

* enabling publish to only publish sub packages

* changing directory and then coming back to original after the publish runs

* searching the glob tar and npmrc in the current directory

* excluding build descriptor check and addtional target tool check

* changing the npm pack before publish to run only in sub packages

* removing commented code clean up

* adding the correct npm pack

* improve logging

* fix error handling and a bit style fix

* fix unit tests

* remove commented lines

* respecting build descriptor list when provided

* improve docu for the step param

* fixing linting issues

* improve docu

---------

Co-authored-by: Gulom Alimov <[email protected]>
Co-authored-by: Jordi van Liempt <[email protected]>
andrew-kireev pushed a commit that referenced this pull request Oct 17, 2023
#4579)

* enabling publish to only publish sub packages

* changing directory and then coming back to original after the publish runs

* searching the glob tar and npmrc in the current directory

* excluding build descriptor check and addtional target tool check

* changing the npm pack before publish to run only in sub packages

* removing commented code clean up

* adding the correct npm pack

* improve logging

* fix error handling and a bit style fix

* fix unit tests

* remove commented lines

* respecting build descriptor list when provided

* improve docu for the step param

* fixing linting issues

* improve docu

---------

Co-authored-by: Gulom Alimov <[email protected]>
Co-authored-by: Jordi van Liempt <[email protected]>
maxatsap pushed a commit to maxatsap/jenkins-library that referenced this pull request Jul 23, 2024
SAP#4579)

* enabling publish to only publish sub packages

* changing directory and then coming back to original after the publish runs

* searching the glob tar and npmrc in the current directory

* excluding build descriptor check and addtional target tool check

* changing the npm pack before publish to run only in sub packages

* removing commented code clean up

* adding the correct npm pack

* improve logging

* fix error handling and a bit style fix

* fix unit tests

* remove commented lines

* respecting build descriptor list when provided

* improve docu for the step param

* fixing linting issues

* improve docu

---------

Co-authored-by: Gulom Alimov <[email protected]>
Co-authored-by: Jordi van Liempt <[email protected]>
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