jenkins_url
+ /api/json?tree=jobs[name,color]
jenkins_url
+ /job/${job_name}/api/json?tree=builds[number,status,timestamp,id,result]
1. Become 'su' on your account and Enter your password | |
2. apt-get install sudo | |
Debian 9 or older: add the user account to the group sudo with adduser username sudo. Where username is your user account. | |
Debian 10: add the user account to the group sudo with /sbin/adduser username sudo. Where username is your user account. |
https://portworx.com/run-ha-elasticsearch-elk-azure-kubernetes-service/ |
import json | |
import requests | |
BASE_URL = 'http://localhost/wiki/' | |
AUTH_USER = 'user' | |
AUTH_PASS = 'password123!' | |
POST_ID = 1234 | |
def update_wiki(): |
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.''' |
#!/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 \ |
#!/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 |
#!/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 |
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 |
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 |