Skip to content

Instantly share code, notes, and snippets.

View i386's full-sized avatar

James William Dumay i386

View GitHub Profile
@i386
i386 / jira_to_adoc.rb
Created July 26, 2016 00:31
Converts a JIRA query RSS feed to asciidoc suitable for release notes
require 'rss'
require 'open-uri'
url = 'https://issues.jenkins-ci.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=component+%3D+blueocean-plugin+AND+resolution+%3D+Fixed+AND+resolved+>%3D+2016-07-15+AND+resolved+<%3D+2016-07-22&tempMax=1000'
open(url) do |rss|
feed = RSS::Parser.parse(rss)
feed.items.each do |item|
puts "* #{item.link}#{item.title}"
end
end
[
{
"_class": "io.jenkins.blueocean.rest.impl.pipeline.PipelineStepImpl",
"_links": {
"self": {
"_class": "io.jenkins.blueocean.rest.hal.Link",
"href": "/blue/rest/organizations/jenkins/pipelines/blueocean/branches/story%252FJENKINS-38847/runs/3/steps/3/"
},
"actions": {
"_class": "io.jenkins.blueocean.rest.hal.Link",
pipeline {
stage('a single stage') {
sh 'echo first step'
retry (5) {
sh 'echo if this step fails it will be retried 5 times before failing the pipeline'
}
sh 'last step'
}
}
pipeline {
agent any
stages {
stage('Build') {
steps {
echo 'build steps go here'
}
}
stage('Test') {

Keybase proof

I hereby claim:

  • I am i386 on github.
  • I am i386 (https://keybase.io/i386) on keybase.
  • I have a public key ASAJcWSMvY1ToHGLF8w5rXjfP7lm7A25enSaPNxpyv1XCAo

To claim this, I am signing this object:

# Shakshuka
## Incredients
. 1 red bell pepper
. 1 large brown onion
. 15oz chick peas (canned)
. 6lbs diced tomatos (canned)
. 6 eggs
. Greek yogurt
. Chopped parsley, to serve