Skip to content

Instantly share code, notes, and snippets.

View KostyaSha's full-sized avatar
💭
I may be slow to respond.

Kanstantsin Shautsou KostyaSha

💭
I may be slow to respond.
View GitHub Profile
@KostyaSha
KostyaSha / preprocessor_fun.h
Created May 29, 2017 13:36 — forked from aras-p/preprocessor_fun.h
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,
import static org.jenkinsci.plugins.github.pullrequest.utils.JobHelper.ghPRTriggerFromJob
import static com.github.kostyasha.github.integration.branch.utils.JobHelper.ghBranchTriggerFromJob
import com.github.kostyasha.github.integration.branch.GitHubBranchTrigger
import org.jenkinsci.plugins.github.pullrequest.GitHubPRTrigger
Jenkins.instance.getAllItems(Job.class).each{ job ->
GitHubPRTrigger prTrigger = ghPRTriggerFromJob(job)
if (prTrigger != null) {
println "Starting GH PR trigger for " + job.getFullName()
* Python-3.5.2.tar.xz SHA256 SHA512 size ;-) ... [ ok ]
* python-gentoo-patches-3.5.2-0.tar.xz SHA256 SHA512 size ;-) ... [ ok ]
>>> Downloading 'http://distfiles.gentoo.org/distfiles/python-prefix-3.5.2-gentoo-patches-r0.tar.xz'
--2017-01-17 02:34:16-- http://distfiles.gentoo.org/distfiles/python-prefix-3.5.2-gentoo-patches-r0.tar.xz
Resolving distfiles.gentoo.org... 156.56.247.195, 64.50.236.52, 140.211.166.134, ...
Connecting to distfiles.gentoo.org|156.56.247.195|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2017-01-17 02:34:16 ERROR 404: Not Found.
>>> Downloading 'https://dev.gentoo.org/~grobian/distfiles/python-prefix-3.5.2-gentoo-patches-r0.tar.xz'
[
{
"@class": "org.jenkinsci.plugins.workflow.graph.FlowStartNode",
"parentIds": [],
"id": "2",
"typeDisplayName": "Start of Pipeline",
"running": false,
"allActions": [
{
"@class": "com.cloudbees.workflow.rest.endpoints.FlowNodeAPI"
[
{
"@class": "org.jenkinsci.plugins.workflow.graph.FlowStartNode",
"parentIds": [],
"id": "2",
"typeDisplayName": "Start of Pipeline",
"running": false,
"allActions": [
{
"@class": "com.cloudbees.workflow.rest.endpoints.FlowNodeAPI"
INFO: Accepted connection #1 from /192.168.99.100:38987
Feb 25, 2016 2:25:24 AM com.github.kostyasha.yad.launcher.DockerComputerJNLPLauncher launch
INFO: Launched slave 'dockers-c0460410bbbf' based on 'c0460410bbbf58420cc7dfc6d9e5295c40a5511ab0c24a42433dc2805ff42524'
Feb 25, 2016 2:25:25 AM hudson.tasks.Shell$DescriptorImpl getShellOrDefault
WARNING: null
java.io.IOException: Remote call on dockers-c0460410bbbf failed
at hudson.remoting.Channel.call(Channel.java:789)
at hudson.tasks.Shell$DescriptorImpl.getShellOrDefault(Shell.java:141)
at hudson.tasks.Shell.buildCommandLine(Shell.java:85)
at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:97)
time="2016-02-23T23:24:49.982892787Z" level=debug msg="Calling POST /exec/32872f2d97a44f6eb05f5051ba57ed4aebb6e44186dffd4e27165e97b6035d22/start"
time="2016-02-23T23:24:49.982968160Z" level=debug msg="POST /exec/32872f2d97a44f6eb05f5051ba57ed4aebb6e44186dffd4e27165e97b6035d22/start"
time="2016-02-23T23:24:49.983046872Z" level=debug msg="form data: {\"Detach\":true,\"Tty\":true}"
time="2016-02-23T23:24:49.983175708Z" level=debug msg="starting exec command 32872f2d97a44f6eb05f5051ba57ed4aebb6e44186dffd4e27165e97b6035d22 in container 9b8572202459e502251a08520102da2f17c2ec701279602b515a833b7468537c"
time="2016-02-23T23:24:49.985347690Z" level=debug msg="attach: stdin: begin"
time="2016-02-23T23:24:49.985669491Z" level=debug msg="Closing buffered stdin pipe"
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x20 pc=0x6b32e3]
goroutine 430 [running]:
Stack trace
javax.servlet.ServletException: java.lang.IllegalAccessError
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:796)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649)
at org.kohsuke.stapler.Stapler.service(Stapler.java:238)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1496)
You are screensharing and presenting to everyoneStop
Daniel
You
Daniel Beck 2 participants
Group chat
To list all available commands enter "/?".
{
"mem" : 615936,
"mem.free" : 136590,
"processors" : 2,
"instance.uptime" : 20581005,
"uptime" : 20703479,
"systemload.average" : 0.79,
"heap.committed" : 615936,
"heap.init" : 59392,
"heap.used" : 479345,