I wanted to know what is the language used to interpret the lines of the script section. It seems to be BASH. For YAML, it just a list of strings. That does not tell how these lines are interpreted by saying it is YAML.
This is odd that the documentation does not specify this important technicality.
It's called yaml, it's a configuration language more-or-less.
You can read about how they use it here:
You can always use "Make" or "Ant" or bash scripts, you'd just make that your step like:
- step: name: "Build and Run Tests"
- make clean all
Quick note: You might have issues with execute permissions, I've had to grant my scripts execute with a "- chmod +x somedir/somescript.sh
Hope that helps.
Everything in the bitbucket-pipelines.yml file is in yaml. I don't believe bitbucket supports anything but yaml for configuring their pipelines. The yaml file is used as the bridge between "What bitbucket knows about" and "how you want to build your source".
The script section in the step section you can think of as commands that it will pass into the build runner image in the working directory - essentially at the root of your source for that repo/pipeline.
So in the case of "make clean all" the pipeline will attempt to run "make" with the arguments of "clean all" within the virtual machine/container that is attempting to build my code. If "make" is not found you'd get an error that'd youd see in the logs, just like you would in windows, ubuntu, alpine, whatever.
In my case, I have a custom image for my pipelines. It's an ubuntu image, with build-essentials installed, so I have make. In my root of my source I have a Makefile that has targets for "clean" and "all"
Hi All! We’re excited to share the launch of an announcement banner that lets Jira site administrators communicate directly to their users across Jira Cloud instance. 📢 Get y...
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