We've got an application (Angular/node in GitLab) that has a corresponding freestyle build in Jenkins. In the package.json, we need to reference a separately-built library of our own writing, also in GitLab. Like this:
"dependencies": {
"our-library": "git+ssh://git@ourcompany.com:2222/libraries/our-library.git#master"
}
When we build the application in Jenkins, it pulls the source for our-library, which does not contain the generated lib files. The issue is that ideally we would not like to push the lib files generated by a local our-library build just so that the Jenkins build will be able to find what it needs for the application build. It's almost like we need to be able to reference the /lib folder in the Jenkins our-library workspace instead of referencing the source from GitLab, or something.
The fact that I need to ask this question gives me the feeling that we're going about this all wrong. Any insight on how to build an app in Jenkins while referencing other node projects that we build as well?
Thanks a lot for any feedback!