A script of mine creates new files (minifed js files) during the building process.
A test with - ls shows me the files are created, but git ftp doesn't transfer the newly created files (*.min.js). When i transfer the specific folder only the standard files (*.js) get transfered, which where there before the building process.
I tried it with the --all parameter for git ftp and declared the files as artifacts but nothing seems to work, any ideas?
have you added and committed these new files into your git repository? I assume these newly created files during the build process will be unknown to git and as such git ftp will ignore them?
--all will in my understanding just upload all files known to git in current checkout (as opposed to the default behaviour of uploading just changed files?)
Thanks for your reply!
I didn't commit the newly created files to the repository. I just wanna create them before I deploy them to the FTP Server, like I do it with the vendor directory, just run composer install before I deploy it to FTP.
But I found a workaround:
In the pipelines.yml I create the min.js. files with my script, then I run git-ftp for all files, which pushes only the changed files to the FTP, and then I run atlassian/ftp-deploy only on the js folder, which pushes my newly created min.js files to the FTP.
It's a strange way, but it works :D
...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events