We're running Bitbucket and Scriptrunner (hosted). When my developers commit multiple files, some of which match a list of defined file types (lets say Java or JS file) I want to test these...
Hello, I am trying to set up a merge check script that will reuse an existing pre-commit git hook in my repository(from the ".git/hooks" folder) and if the hook returns the ok status I will ...
Summary Question: Can I generate a pull request using scriptrunner for bitbucket server? Background: I am working on a certain workflow that requires PRs to multiple branches when a change need...
Hey, I wonder if someone has looked into the following use-case: We want to digitally "sign" all commits created on e.g. the master branch based on a number of criteria. These could be approved by ...
Is it possible to disable specific global pre-hook check on repository or project level? E.g. we have same settings for 99 projects and all newly-created ones, but there's 1 specific repository that ...
I am upgrading my Bitbucket from 4.13.0 to 5.6.1 and then upgrading the ScriptRunner for Bitbucket plugin to the latest version via the admin panel in Bitbucket. We have several repositories that ar...
Hi! We all know about the class not found error that is happening for no reason every week, so we just need to put an space and magic happens. But what we can do if this is your script and we ...
Hi, We have written a Script Plugin based on this guide by Adaptivist Script Runner. The plugin is basically to enforce some pull request checks e.g. branch name with valid jira ticket id, ...
Hi, How can I create a pre-receive hook to reject merge commits using Adaptivist Scriptrunner for BitBucket? This page mentions it's possible: https://scriptrunner.adaptavist....
I'm adding a pre-receive hook on my repository in Bitbucket. I added the "Require commits to be associated with a JIRA issue" hook. It is provided by ScriptRunner. But when I push the master branch...
Hi I'm trying to check the build status of the last commit in a pull request but can't get the BuildStatusService to get resolved using ComponentLocator.getComponent(BuildStatusService). It always r...
In the global configurations for Bitbucket I can create a protect git refs script pre hook with the syntax below without issues and it works, but when I try to create it in the repository configurati...
Does anyone know a plugin that allows teams to have more granular permissions for Bitbucket Server? We are wanting to allow teams to setup their own projects. but still enforce some project lev...
Hello all, I'm wanting to have a merge check that requires at least one of the approvers to be in a list. I tried something like this as a conditonal but for whatever reason it's not behaving like ...
I was evaluating Scriptrunner for Stash without issues and after upgrade to Bitbucket Server, I discovered that the default scripts directory is not recognized any longer. I get this message no...
Hi Jamie Echlin We would like to require our users to enter jira issue number when they commit before they push the local repository in bitbucket. I looked at the Atlassian JAVADOC API and I fo...
I followed the steps here explaining how to Mirror Bitbucket cloud with ScriptRunner. I tried to use Built in Script to mirror a repository, i have the correct credentials in but when I run a previe...
My organization uses Stash v3.11.1 and the plugin Adaptavist ScriptRunner. An issue has recently come up where we want to prevent the user from creating pull requests between certain branches with a ...
We use a script to add a special layer of review when a change directly affects the databases: pathsMatch('glob:db/*/*') || pathsMatch('glob:**/migrations/**') This script is used as part of an eve...
Is there a way to use ScriptRunner to prevent branch deletion performed through the UI? (for stash versions prior to 3.10 which don't have this support built-in). I can see it's possible with a pre-...
I am trying to use Script Event Handler. Event I am using is : Auto add reviewers to pull requests. I created couple of rule/conditions on using ExamplesChanged files in sensitive directory (pathsM...
Copied to clipboard