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.
Hi @ross_rawlins,
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?
Kind regards,
Theodora
Hey Theo
I discovered its got to do with the dependency cache that automatically gets cleared after 7 days but my release process is longer than that so it would be a month before we deploy that build.
Do you know if you can extend that cache period?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ross,
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.
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks. I inherited the build so I wouldnt know how to make it run with out the dependencies,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ross,
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.
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.