Skip to content

Instantly share code, notes, and snippets.

🌏
globe trotter

Kohsuke Kawaguchi kohsuke

🌏
globe trotter
Block or report user

Report or block kohsuke

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 gist:2b291ddd5b9ea2975a0fcaf52b8561bb
java.lang.IllegalStateException: No WEB-INF/jars
at jenkins.bootstrap.Bootstrap.buildCoreClassLoader(Bootstrap.java:160)
at jenkins.bootstrap.Bootstrap.contextInitialized(Bootstrap.java:94)
at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:890)
at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:532)
at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:853)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:344)
at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1501)
at org.eclipse.jetty.maven.plugin.JettyWebAppContext.startWebapp(JettyWebAppContext.java:357)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1463)
View gist:c3fa1cc1ef4e8a5f7341d25440c3136a
@Issue("JENKINS-38268")
@Test
void closureLocalVariable() {
assert evalCPS('''
def x = { y=3 }
x()
return y
''') == 3
}
View docker-gc.sh
#!/bin/bash
# delete files occupied by the finished containers
sudo docker rm $(sudo docker ps -a | grep Exit| cut -f1 -d' ')
# delete dangling images
sudo docker rmi $(sudo docker images -f "dangling=true" -q)
View gist:2e181af21ff50e419c8570e0d827c965
gcgs2_1 | 2017-05-09 16:37:52.886:WARN:oejs.HttpChannel:qtp1226204845-15: /uploadSpool
gcgs2_1 | java.io.IOException: Request GET http://proxy:9200//heads/head/repo0 HTTP/1.1 yielded text/html, should be json: HTTP/1.0 503 Service Unavailable
gcgs2_1 | at io.searchbox.client.http.JestHttpClient.deserializeResponse(JestHttpClient.java:188)
gcgs2_1 | at io.searchbox.client.http.JestHttpClient.execute(JestHttpClient.java:58)
gcgs2_1 | at com.cloudbees.analytics.storage.elastic.ElasticsearchStorage$1.get(ElasticsearchStorage.java:168)
gcgs2_1 | at com.cloudbees.analytics.cda.gcgs.storage.es.EsHeadSetStorage.load(EsHeadSetStorage.java:23)
gcgs2_1 | at com.cloudbees.analytics.cda.gcgs.Application.doUpload(Application.java:46)
gcgs2_1 | at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
gcgs2_1 | at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)
gcgs2_1 | at org.
View gist:51d52039173697e6f97a26118f07ed14
{
"date" : "Jan 16, 2017",
"releases" : [
{
"latestRelease" : true,
"timestamp" : 1484589666000,
"version" : "0.7.7",
"title" : "Jenkins Accurev plugin",
"gav" : "org.jenkins-ci.plugins:accurev:0.7.7",
"wiki" : "https://wiki.jenkins-ci.org/display/JENKINS/AccuRev+Plugin"
View gist:74f8a22b0a82472903f92f46db4d2c58
{
"run" : {
"number": null,
"displayName": null,
"action": [
"testResult" : null
]
}
}
View gist:9e4a502f168ee72996bad946cf1912ca
+ /srv/releases/azure-sync.sh
--2016-11-15 19:48:46-- https://raw.githubusercontent.com/jenkins-infra/azure/master/scripts/release-blob-sync
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.32.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.32.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2279 (2.2K) [text/plain]
Saving to: ‘release-blob-sync’
0K .. 100% 57.4M=0s
View cucumber.crt
% openssl x509 -in cucumber.crt -text
Certificate:
Data:
Version: 3 (0x2)
Serial Number: 16760861739832129757 (0xe89a8af3142138dd)
Signature Algorithm: sha256WithRSAEncryption
Issuer: C=US, ST=Arizona, L=Scottsdale, O=GoDaddy.com, Inc., OU=http://certs.godaddy.com/repository/, CN=Go Daddy Secure Certificate Authority - G2
Validity
Not Before: Nov 10 23:47:00 2016 GMT
Not After : Feb 9 03:41:22 2018 GMT
@kohsuke
kohsuke / jenkins-ci.org.key
Created Nov 7, 2016
New jenkins signing key
View jenkins-ci.org.key
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1
mQGiBEmFQG0RBACXScOxb6BTV6rQE/tcJopAEWsdvmE0jNIRWjDDzB7HovX6Anrq
n7+Vq4spAReSFbBVaYiiOx2cGDymj2dyx2i9NAI/9/cQXJOU+RPdDzHVlO1Edksp
5rKn0cGPWY5sLxRf8s/tO5oyKgwCVgTaB5a8gBHaoGms3nNC4YYf+lqlpwCgjbti
3u1iMIx6Rs+dG0+xw1oi5FUD/2tLJMx7vCUQHhPRupeYFPoD8vWpcbGb5nHfHi4U
8/x4qZspAIwvXtGw0UBHildGpqe9onp22Syadn/7JgMWhHoFw5Ke/rTMlxREL7pa
TiXuagD2G84tjJ66oJP1FigslJzrnG61y85V7THL61OFqDg6IOP4onbsdqHby4VD
zZj9A/9uQxIn5250AGLNpARStAcNPJNJbHOQuv0iF3vnG8uO7/oscB0TYb8/juxr
View gist:c712ce347d92070bdf92f90d1b300df6
I'm the maintainer of the Jenkins debian package repository at http://pkg.jenkins.io/debian/
My repository is listed in https://wiki.debian.org/Teams/Apt/Sha1Removal and so I'm trying to fix it. And I have a question.
According to the said Wiki page, "Repositories with DSA keys need to be migrated to RSA first", but as far as I can tell, this is not strictly speaking necessary. I was able to generate a SHA256 signature like this, using my existing DSA/1024 key:
Command line:
$ gpg --detach-sign --armor --digest-algo sha256 < Release
Generated signature:
You can’t perform that action at this time.