Is there a way to trigger/queue a build on VSTS using an SVN post-commit-hook? Our svn repository is behind a firewall so isn't visible to VSTS for the built in polling it offers. But I want to be able to queue builds after changes to trunk. Is this possible?
Is there a way to queue a VSTS build with SVN post commit hook?
449 Views Asked by Fiery At
2
There are 2 best solutions below
0
Fiery
On
Yes I was able to get this working.
Used curl to do the post from our linux svn server. Also we've found it only works with logged in user details (email and PersonalAccessToken) so it labels them to the same user - haven't found how to get it to be specific to the person that committed yet. We were able to change some settings via the JSON, such as the build reason for example.
This is the post-commit we have in place at the moment. (with redacted details)
curl -u {[email protected]:PersonalAccessToken} -H "Content-Type: application/json" -g https://dev.azure.com/{account}/{project}/_apis/build/builds?api-version=4.1 -d "{ \"definition\": { \"id\":1}, \"reason\":\"individualCI\" }" &
Related Questions in SVN
- Cannot load modules/mod_dav_svn.so into server
- Created Jenkins pipeline and added the script in the Pipeline Description.To check out the Project from the svn repository.NotWorking. Any Suggestion
- How to host SVN server on Cloud
- In two subversion repositories (same machine), can I have different usernames with no password prompting?
- Unrelated git histories when moving code from SVN to Git
- Convert local SVN to GIT using Tortoise GIT fails with unable connect?
- Jenkins Pipeline Script Check-in SVN using NPM
- Making latest subversion exec point to my restored subversion data directory
- Can anyone help on this "svn merge" problem?
- clone repo from SVN to GIT: unable to connect to a repository
- Possible to recursively serve an existing SVN checkout folder to another computer?
- How to push certain branches into git repository?
- Subversion svn merge failure
- Jenkins: SVN Checkout missing commit message
- SVN same setup, same user, fine from one machine but from another DAV/PROPFIND error
Related Questions in AZURE-DEVOPS
- Accessing Secret Variables in Classic Pipelines through Java app in Azure DevOps
- Error: VS800075 when downloading artifact from another project
- Azure Scale Sets and Parallel Jobs
- Get current Timestamp in CET format and concatenate with string in yml file
- Post-Job Checkout Hanging in Azure DevOps Pipelines
- Referencing yml file from submodule in main pipeline
- Where to find a User Story draft?
- Self Hosted Agent service startup getting failed on VM restart
- Azure pipeline unable to deploy via a bicep file and set values for its parameters
- Dacpac deployment to Azure via SSMS failed: Cannot alter the role db_owner
- NodeJS [Errno 13] Permission denied - Azure DevOps pipleline AWS Lambda deployment
- Share variables across stages in azure pipelines with templates
- Can I move an Azure Data Factory Pipeline to Azure DevOps?
- How to migrate a single workitem in Devops
- Deploy Docker Image into AKS cluster using Azure Release Pipelines with the parameters like clustername, acr, resourcegroup
Related Questions in AZURE-PIPELINES
- Accessing Secret Variables in Classic Pipelines through Java app in Azure DevOps
- Get current Timestamp in CET format and concatenate with string in yml file
- Post-Job Checkout Hanging in Azure DevOps Pipelines
- What changed from xcode 13.2.1 to 14.2 that would affect an app's entitlements?
- Azure pipeline unable to deploy via a bicep file and set values for its parameters
- NodeJS [Errno 13] Permission denied - Azure DevOps pipleline AWS Lambda deployment
- To can I reference the error code of a failed step in an Azure pipeline
- Share variables across stages in azure pipelines with templates
- Deploy Docker Image into AKS cluster using Azure Release Pipelines with the parameters like clustername, acr, resourcegroup
- Getting CI/CD error on biulding step in React Azure Pipeline
- Custom Conditions in Azure Pipelines break ability to cancel
- Why multiple azure pipelines are being triggered although I am triggering only once?
- Devops passing output from one job template step to another job template step
- Integrate Deployment status to Work Items in TFS
- Because my api, after publishing through the AzureDevops pipeline in flurl methods, the entryPointNotFoundException exception is occurring
Related Questions in POST-COMMIT-HOOK
- Fail to run git command in specific directory in global post-commit hook
- Git command to retrieve contents of staged file?
- Jenkins Job failed for 'mlDeployApp' task due to .svn folder
- Why doesn't `git cherry-pick` (without `--no-commit`) run my post-commit hook?
- gitlab commit thread created automatically on a condition
- Bash script won't exit on input command
- svn server: how to manipulate existing revision
- Why do I get an authentication error when checking if a branch exists in svn?
- Why are all my files marked for deletion by Git after I do "git stash pop -q"?
- How to use SVN post-commit hook trigger jenkins build?
- Subversion post commit hook for Jenkins
- Jenkins trigger build URLs
- post-commit hook : run the jenkins job based on project changed in git repository
- run a command in post commit hook when commit a specific path
- Don't execute SVN "post commit hook" when a specific file is committed
Related Questions in AZURE-DEVOPS-REST-API
- Powershell script started failing to add new release variable via the API "Error: An empty body in the POST request is not allowed"
- VssUnauthorizedException: VS30063: You are not authorized to access https://xxxx.visualstudio.com
- How does Azure DevOps handle HTML structure changes in Description fields?
- How to hide a process's field from layout?
- Azure devops rest api is giving me only few releases information.?
- does azure devops support dynamic retrieval of value from 3rd party rest API
- Azure DevOps REST api to add continuous deployment trigger
- Disable Continuous Integration on Pipeline using the Azure DevOps REST API
- Add Variables to Pipelines using the Azure DevOps REST API
- Error Deleting Remote Git Branch via Azure DevOps API: Unsupported HTTP Method 'POST'
- Referencing variables in yaml that are passed from ADO REST Api
- How to extract a list of builds from devops using rest api that includes message info for manually triggered builds as well as auto builds
- Get info about approvals and checks for azure devops environments
- Is there an azure cli command that gets the threads and comments on a PR?
- How to get the result of the latest/last pipeline build in Azure DevOps
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You can use the REST API of Visual Studio Team Services to queue a build. That should be doable from a hook or something polling the SubVersion server locally.