Skip to content

Instantly share code, notes, and snippets.

@gamerson
gamerson / status.json
Created July 23, 2021 13:47
Lugbot `/status` example #1
{
"completedTasks": [
{
"finishTime": 1627047806038,
"id": 4,
"name": "Bug Prevention",
"projectId": 1,
"startTime": 1627047771174,
"state": "COMPLETED_SUCCESS"
},
{
"completedTasks": [],
"pendingTasks": [
{
"finishTime": 0,
"id": 9,
"name": "Code Upgrade Proposal: debug-timer_sleep-60",
"startTime": 0,
"state": "2"
},
@gamerson
gamerson / lugbot.yaml
Created June 1, 2021 22:23
sample lugbot yaml
tasks:
mode: pr
upgrade:
currentVersion: '7.1'
upgradeVersion: '7.3'
enableAll: true
quality:
categories:
- BugPrevention
- Performance
@gamerson
gamerson / payload.json
Created October 21, 2020 19:01
payload.json
{
"action": "created",
"issue": {
"url": "https://api.github.com/repos/gamerson/lfrgs-sim-ips-test/issues/3",
"repository_url": "https://api.github.com/repos/gamerson/lfrgs-sim-ips-test",
"labels_url": "https://api.github.com/repos/gamerson/lfrgs-sim-ips-test/issues/3/labels{/name}",
"comments_url": "https://api.github.com/repos/gamerson/lfrgs-sim-ips-test/issues/3/comments",
"events_url": "https://api.github.com/repos/gamerson/lfrgs-sim-ips-test/issues/3/events",
"html_url": "https://github.com/gamerson/lfrgs-sim-ips-test/issues/3",
"id": 725970390,
@gamerson
gamerson / webhooks.json
Created October 21, 2020 18:50
webhooks.json
[
{
"id": "lugbot",
"execute-command": "/opt/lugbot-upgrade.sh",
"command-working-directory": "/tmp",
"pass-arguments-to-command":
[
{
"source": "payload",
"name": "repository.owner.login"
> Task :compileJava SKIPPED
> Task :processResources SKIPPED
> Task :classes SKIPPED
> Task :jar SKIPPED
> Task :startScripts SKIPPED
> Task :distTar SKIPPED
> Task :distZip SKIPPED
> Task :assemble SKIPPED
> Task :compileTestJava SKIPPED
> Task :processTestResources SKIPPED
@gamerson
gamerson / build.gradle
Last active July 15, 2020 21:09
build.gradle workaround for com.liferay.node plugin and gradle4
allprojects {
plugins.withId("com.liferay.node") {
node.nodeUrl = node.nodeUrl.replace("http:", "https:")
}
}
dxp-7.0-sp8
commerce-2.0.7-7.2
dxp-7.0-sp10
portal-7.3-ga3
dxp-7.1-sp2
commerce-2.0.7-7.1
portal-7.3-ga2
commerce-2.0.2
dxp-7.0-sp5
dxp-7.2-ga1
@gamerson
gamerson / gist:fb52e92e21ffab6e9d8425ab30ede227
Created May 5, 2020 22:13
Upload zip file to local nexus
curl -v -F r=releases -F hasPom=false -F e=zip -F g=com.liferay -F a=hotfix -F v=1072-7210 -F p=zip -F file=@liferay-hotfix-1072-7210.zip -u admin:admin123 http://localhost:8081/nexus/service/local/artifact/maven/content
@gamerson
gamerson / 12008.txt
Created April 23, 2020 14:56
jstack 12008.txt
2020-04-23 09:54:56
Full thread dump OpenJDK 64-Bit Server VM (11.0.2+9 mixed mode):
Threads class SMR info:
_java_thread_list=0x0000600004c8ef60, length=66, elements={
0x00007fbe1d811000, 0x00007fbe0e0ef800, 0x00007fbe0e0f4800, 0x00007fbe0d83c800,
0x00007fbe0d83f800, 0x00007fbe1d812000, 0x00007fbe1d813000, 0x00007fbe0d8e0800,
0x00007fbe0e814000, 0x00007fbe0de8c000, 0x00007fbe1db37000, 0x00007fbe1ebb1000,
0x00007fbe0e7f5000, 0x00007fbd9db8c800, 0x00007fbe1ed41000, 0x00007fbd9e03a800,
0x00007fbe1de46800, 0x00007fbe1e64f000, 0x00007fbe1de65000, 0x00007fbd9e22b800,