Skip to content

Instantly share code, notes, and snippets.

View robertobatts's full-sized avatar
:octocat:

Roberto Battaglia robertobatts

:octocat:
View GitHub Profile
@robertobatts
robertobatts / updateBitbucketWebhooks.js
Last active April 6, 2020 09:23
Automatically add/update a webhook in all your Bitbucket repositories
const fetch = require('node-fetch')
const base64 = require('base-64')
const OWNER = 'robertobattaglia'
const USERNAME = 'robertobattaglia'
const PASSWORD = 'PASSWORD'
const numberOfPages=4
pipeline {
agent any
triggers {
bitbucketPush()
}
tools {
jdk 'OpenJDK_1_8_0'
}
<?xml version="1.0" encoding="UTF-8"?>
<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd" xmlns="http://maven.apache.org/SETTINGS/1.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<servers>
<server>
<username>admin</username>
<password>password</password>
<id>artifactory-server</id>
</server>
</servers>