A variable doesn't work for working_directory #2852
-
If you are looking for help, please confirm the following...
Which mobile framework are you using?Flutter (Dart) Steps to reproduceHello, I need to have ability to specify different working_directory. I have added WORK_DIR in vars section and set working_directory: $WORK_DIR but this doesn't work, it fails. When I set working_directory: somedir, it works perfectly. What am I doing wrong? Below is example of my yaml file:
I'm calling a new build in Postman like this Expected resultsI want to use my defined variable for working_directory. Actual resultsIt doesn't use my WORK_DIR var for working_directory. Build id (optional)6746047eb5f296efbb41898c |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Hello @AndreyBobrovsky,
Please let me know how this goes on your end. |
Beta Was this translation helpful? Give feedback.
-
Hello @dam-ease, |
Beta Was this translation helpful? Give feedback.
Thanks a lot for your help. I tried your trick with cd $WORK_DIR, see my yaml below
it even chages the working directory but fails on the next step "Get Flutter packages" saying it can find pubspec.yaml file. It seems to forget that I changed the directory on the previous step.