Hi, I want to make a pipeline that first compiles the angular project and then sends that build to the web via FTP.
I have modified the angular.json and the firebase.json with the folder where it is compiled. The problem is that when you do the steps, the compilation that you upload to the ftp is not the one that you compiled. Where is the compilation? What could be happening ?, I give you screenshots of everything I mentioned.
Hi @sourcer ,
Any files that you generate during a step will not be available in subsequent steps, unless you define them as artifacts.
If in your step named "Build Prod" there are files generated in the folder Front/app/public, that you want then to deploy in the next step named "Upload ftp", you should define the contents of this directory as artifacts.
The relevant section in the yml file would look like this:
- step:
name: Build prod
script:
- cd Front/app
- npm install -g @angular/cli
- npm install
- ng build
- cd public
- ls -l
artifacts:
- Front/app/public/**
You can read more on artifacts in the following documentation:
Please feel free to let us know if this works for you and if you need further assistance.
Kind regards,
Theodora
Thank you very much Teodora, I'm going to try it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.