If I run my build and deploy to my environments immediately the deployments work as normal. But if I deploy to one environment and then try to deploy a week later the deployment fails with.
/bin/sh: ts-node: not found
This leads me to believe that the environment is cleared after a certain period of time.
Are you referring to the deployment environments which are specified in a Bitbucket repo's Repository settings > Deployments? I don't believe that we're deleting anything that you configure there, but I'm not sure if anything is removed on the servers where you are deploying.
It's also a bit difficult to say what is happening without some additional info, like
- how are you doing the deployments, what commands are executed in the yaml file
- what is the full output of these commands
Would you feel comfortable sharing this additional info here?
I'm afraid that it is not possible to configure the time that cache is stored at the moment. Since caches are temporary, the builds should be configured to work whether or not the cache is present.
We have a feature request in our issue tracker to allow configuration of the expiry date for caches:
I would suggest adding your vote in that feature request (by selecting the Vote for this issue link) as the number of votes helps the development team and product managers better understand the demand for new features. You are more than welcome to leave any feedback with your use case, and you can also add yourself as a watcher (by selecting the Start watching this issue link) if you'd like to get notified via email on updates.
Implementation of new features is done as per our policy here and any updates will be posted in the feature request.
Please feel free to let me know if you have any questions.
I didn't mean that the builds should run without the dependencies. If dependencies are needed, there should be a command in the script in your yml file that downloads them and possibly a file in the repo that specifies these dependencies. If a cache is present, the dependencies won't get downloaded again. However, if there is no cache, the dependencies will then be downloaded.
The way to do that depends on what language tools you use. If you did not create the repo and build yourself, I think it's best to reach out to the person who did and ask for info on what dependencies are needed and how they can be downloaded with the language tools you use.
Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...