jenkins_url
+ /api/json?tree=jobs[name,color]
jenkins_url
+ /job/${job_name}/api/json?tree=builds[number,status,timestamp,id,result]
## SOURCES LIST FOR UBUNTU 16.04 LTS XENIAL XERUS | |
## ALSO FOR XUBUNTU 16.04, LUBUNTU 16.04 | |
## AND KUBUNTU 16.04 | |
## From: http://sites.google.com/site/easylinuxtipsproject | |
## This list is for the Main server; you might want to select a | |
## faster mirror server closer to you, with Software & Updates. | |
## Only fit for 16.04 LTS Xenial Xerus! | |
# | |
## SOURCES FOR ORDINARY UPDATES AND SOFTWARE: | |
deb http://archive.ubuntu.com/ubuntu xenial main |
gpg2 --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 | |
curl -L https://get.rvm.io | bash -s stable | |
source ~/.rvm/scripts/rvm | |
rvm list known | |
rvm install 2.1.8 | |
rvm use 2.1.8 --default | |
ruby -v | |
gem install bundler |
package examples.docs | |
import com.atlassian.applinks.api.ApplicationLink | |
import com.atlassian.applinks.api.ApplicationLinkService | |
import com.atlassian.applinks.api.application.confluence.ConfluenceApplicationType | |
import com.atlassian.sal.api.component.ComponentLocator | |
import com.atlassian.sal.api.net.Request | |
import com.atlassian.sal.api.net.Response | |
import com.atlassian.sal.api.net.ResponseException | |
import com.atlassian.sal.api.net.ResponseHandler |
#!/usr/bin/env python | |
''' | |
Update/create a page containing a table w/ Confluence REST API | |
''' | |
import requests | |
import json | |
# Get api credentials from local config file |
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
""" | |
Install: Execute 'pip install requests' | |
Run: 'python ticket_creation.py <YOUR_CONFIGURATION_FILE_HERE>' | |
Sample configuration file: | |
[server] | |
jira = https://jira.atlassian.net |
#!/bin/bash | |
export CONFLUENCE_USERNAME="your_username" | |
export CONFLUENCE_PASSWORD="your_password" | |
function get_page_html() | |
{ | |
mkdir ~/confluence; | |
result=$(curl --request GET \ | |
--url "https://ventureapp.atlassian.net/wiki/rest/api/content/$1/?expand=body.export_view" \ | |
--user $CONFLUENCE_USERNAME:$CONFLUENCE_PASSWORD \ |
import requests | |
import json | |
import os | |
import textwrap | |
from datetime import datetime | |
from datetime import timedelta | |
import re | |
class ConfluencePagePost: | |
'''Class to post page/blog content to Confluence via REST API.''' |
import json | |
import requests | |
BASE_URL = 'http://localhost/wiki/' | |
AUTH_USER = 'user' | |
AUTH_PASS = 'password123!' | |
POST_ID = 1234 | |
def update_wiki(): |
https://portworx.com/run-ha-elasticsearch-elk-azure-kubernetes-service/ |