Skip to content

Instantly share code, notes, and snippets.

View AaronMcCaughan's full-sized avatar

AaronMcCaughan

View GitHub Profile
@AaronMcCaughan
AaronMcCaughan / Simple IM Dashboard Header.css
Last active September 28, 2018 04:02
Simple IM Dashboard Header
/*
This script will create a simple IM Dashboard header with a large image and the following Links:
- Release Schedule
- Create new Release
- Create new TEBR
- Create new Change
Refer to the Plutora knowledge base on how to add a new widget. To implement this widget on your own site, following the instructions below
*/
@AaronMcCaughan
AaronMcCaughan / Connect to a SFTP location, import a file and create or update Releases.js
Last active September 28, 2018 07:01
Connect to a SFTP location, import a file and create or update Releases
/*
This script will import a file from a remote server location, and import the file into Plutora using API's.
The script will perform a validation of values in the file against the relevant field values in Plutora and throw an exception if the values don't exist
IMPORTANT: In order to run the script on you subdomain:
1. The script is coded to look for a file called example.csv
2. The values in the file must match the values in your subdomain, this includes:
- Impacted System
- Risk Level
- Type
@AaronMcCaughan
AaronMcCaughan / Simple widget with images and links.css
Created October 3, 2018 02:06
Simple widget with images and links
/*Copy this snippet of code into the html section of the widget editor*/
<div class="user-info-tooltip">
<div class="user-info-wrapper">
<div class="user-info-top">
<div class="user-location"><span>Sydney, Australia</span></div>
<div class="user-weather"><span class="icon-weather"></span><span class="degree"></span><span class="unit"></span></div>
</div>
</div>
</div>
@AaronMcCaughan
AaronMcCaughan / Barclays Banner & Widgets.css
Last active January 16, 2019 07:57
Barclays Banner & Widgets
imdashboard .barclays-promo-panel {
background-color: #607;
border-color: #888;
background: #000 url("http://help.plutora.com/wp-content/uploads/2019/01/barc.png") no-repeat center;
background-size: contain;
}
imdashboard .barclays-promo-panel .panel-heading {
border-color: transparent;
}
imdashboard .barclays-promo-panel .panel-heading h4 {
@AaronMcCaughan
AaronMcCaughan / Barclays TEBR Grid View.css
Last active January 16, 2019 07:59
Barclays TEBR Grid View
.barclays-tebr {
position: relative;
}
imdashboard .barclays-tebr-panel {
border-width: 0;
/*background-color: transparent;*/
}
imdashboard .barclays-tebr-panel .panel-heading {
border-bottom-width: 0;
}
@AaronMcCaughan
AaronMcCaughan / Barclays TECR Grid View.css
Last active January 16, 2019 08:00
Barclays TECR Grid View
.barclays-tecr {
position: relative;
}
imdashboard .barclays-tecr-panel {
border-width: 0;
/*background-color: transparent;*/
}
imdashboard .barclays-tecr-panel .panel-heading {
border-bottom-width: 0;
}
@AaronMcCaughan
AaronMcCaughan / Barclays Schedule.css
Last active January 16, 2019 08:02
Barclays Schedule
imdashboard .barclays-envs-panel {
border-width: 0;
}
imdashboard .barclays-envs-panel .panel-heading {
border-bottom-width: 0;
}
imdashboard .barclays-envs-panel .panel-heading h4 {
font-size: 16px;
line-height: 36px;
}
@AaronMcCaughan
AaronMcCaughan / Connect to Jenkins and trigger a build job.js
Last active August 1, 2019 23:48
Connect to Jenkins and trigger a build job
/*
This script will connect to Jenkins using Basic Authentication and trigger the execution of a Job called 'Demo' using API' requests.
It will then copy the log file from Jenkins to the execution log in Plutora as well as send build progress updates back to the Plutora UI
To execute this script on your own instance of Plutora you will need to replace all credentials and API end points. These are highlighted as comments like this: <<INSERT Text >>
*/
/********************************************************
*************STEP 1: Import npm's************************
********************************************************/
const https = require("https");
@AaronMcCaughan
AaronMcCaughan / Connect to Plutora using parameters entered in the UI and GET a list of Releases.js
Last active August 2, 2019 03:39
Connect to Plutora using parameters entered in the UI and GET a list of Releases
/*
This script will connect to Plutora using Oauth 2.0 Authentication and retrieve a list of Releases using an API request.
It will then console.log the response to the execution log in Plutora.
This script uses credentials that are defined in Plutora UI as Job Parameters. Refer to the knowledge base in Plutora for more information on adding parameters
To execute this script on your own instance of Plutora, create a new Job, upload the script and define the 'Credentials' in the Plutora UI as parameters.
The parameters should be named exactly as they are named in the script. For example, 'args.arguments.oauthurl' should a parameter call 'oauthurl' in the UI
*/