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
Build fails when setting skipFeatureDeployment to true #7386
Comments
Right, so the way you have this set up currently is that you have an extension that has feature XML (your elements.xml file). This basically says "add this element to a site when the app is deployed to it, because the element controls registration". However, you have also said "you don't need to deploy this app to a site". The warning is pointing out the discrepancy. |
@patmill Sorry I don't really get it. What can I do now to build a solution that an admin can deploy tenant-wide without an npm error? My Reference is here : tenant-scoped-deployment and the config looks the same as mine. |
Hi @barisbikmaz - do you have some custom CI pipeline that fails if there are warnings in the console? We do use warning to provide some important information. In your scenario, as @patmill mentioned, we inform that you have Feature Framework elements in tenant-wide solution. |
@AJIXuMuK Yes my CI pipeline fails because of this warning. As you can see in my previous comment npm sends an error code 1. At the moment I have added a build supression to gulpfile.js:
|
@AJIXuMuK Sorry my build does not fail although it says that it has failed. 🤔 |
@barisbikmaz - seems like the pipeline doesn't like warnings. We'll be working to write warning in more specific situation (when there is a tenant-wide deployment, elements.xml file and web parts only). But I would also check settings to disable failing on warning output. |
@barisbikmaz - the promised changes were included in the 1.14 beta. |
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues |
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Developer environment
Windows
What browser(s) / client(s) have you tested
Additional environment details
Describe the bug / error
I have a solution which I want to install tenant-wide. Therefore I have set "skipFeatureDeployment" property to "true".
When I run the command "gulp package-solution --ship" I get a warning
Admins can make this solution available to all sites immediately, but the solution also contains feature.xml elements for provisioning. Feature.xml elements are not automatically applied unless the solution is explicitly installed on a site.
which results in an npm error and causes our CI pipeline to fail.
Steps to reproduce
My package-solution.json
package.json
Expected behavior
Setting skipFeatureDeployment property to true should not fail build.
The text was updated successfully, but these errors were encountered: