Skip to content

Instantly share code, notes, and snippets.

AaronMcCaughan

Block or report user

Report or block AaronMcCaughan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Trigger Jenkins execution remotely.js
/**************************************************************
**********ENVIRONMENT HEALTH CHECK SAMPLE SCRIPT *************
**************************************************************
This script will connect to Jenkins using Basic Authentication and trigger the execution of a Job using API' requests. It will then copy the log file from Jenkins to the execution log in Plutora
The script accepts the input parameters below, triggers the execution of a Jenkins job and captures the console output in Plutora.
The paramaters entered into the UI need to be named as follows and are case sensitive:
- host = <This is the url of your instance of Jenkins>
- user = <This is the user to authenticate with Jenkins>
@AaronMcCaughan
AaronMcCaughan / Execute a test against Plutora APIs.js
Last active Aug 14, 2019
Environment Health Check - Test Plutora APIs
View Execute a test against Plutora APIs.js
/**************************************************************
**********ENVIRONMENT HEALTH CHECK SAMPLE SCRIPT *************
**************************************************************
The following scripts executes a plain JS Test script.
The script accepts a URL and API Credentials as parameters passed in from the UI, generates a Oauth token and makes a simple API call
The paramaters entered into the UI need to be named as follows and are case sensitive:
- url = <The API oauth url of your Plutora Instance>
- clientId = <The API clientId for your instance of Plutora>
@AaronMcCaughan
AaronMcCaughan / Test Plutora SSO Login using a Selenium Test.js
Last active Aug 14, 2019
Environment Health Check - Test Plutora SSO Login
View Test Plutora SSO Login using a Selenium Test.js
/**************************************************************
**********ENVIRONMENT HEALTH CHECK SAMPLE SCRIPT *************
**************************************************************
The following scripts accepts a URL and SSO Credentials as parameters passed in from the UI and logs into the Plutora Application using SSO
The script executes a headless selenium script to perform the test.
The script accepts a URL, email, password and failure email address as parameters passed in from the UI and logs into Plutora using SSO
The paramaters entered into the UI need to be named as follows and are case sensitive:
View Barclays Schedule.css
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;
}
View Barclays TECR Grid View.css
.barclays-tecr {
position: relative;
}
imdashboard .barclays-tecr-panel {
border-width: 0;
/*background-color: transparent;*/
}
imdashboard .barclays-tecr-panel .panel-heading {
border-bottom-width: 0;
}
View Barclays TEBR Grid View.css
.barclays-tebr {
position: relative;
}
imdashboard .barclays-tebr-panel {
border-width: 0;
/*background-color: transparent;*/
}
imdashboard .barclays-tebr-panel .panel-heading {
border-bottom-width: 0;
}
View Barclays Banner & Widgets.css
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 / Sample script to trigger email notifications.js
Created Nov 20, 2018
Sample script to trigger email notifications
View Sample script to trigger email notifications.js
let run = function (args) {
return new Promise((resolve,reject)=>{
console.log('Sending email');
mailData = {
to: 'email@email.com', // Required - Address data can be passed as a single string with commmas separating addresses or an array of single address strings. ie: ['a@a.com', 'b@b.com']
//cc: 'a@a.com', //optional
//bcc: 'a@a.com', //optional
subject: 'Test nodeJS mailer functionality', //Required
View Weather Widget.html
/*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>
View Upcoming Release Widget.css
/*
This script will create a useful series of widgets for the next 8 Enterpise releases and show the following information :
- List each phase along with Start and End Dates
- The Go Live Date
- The list of Features associated to the Enterprise release and all releases within the release manifest via the 'Features' button
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
*/
/*
You can’t perform that action at this time.