[JIRA] (JENKINS-58958) Use the same Jenkins workspace on a Change basis

0 views
Skip to first unread message

imann04@gmail.com (JIRA)

unread,
Aug 15, 2019, 9:09:02 PM8/15/19
to jenkinsc...@googlegroups.com
isaac mann moved an issue
 
Jenkins / Improvement JENKINS-58958
Use the same Jenkins workspace on a Change basis
Change By: isaac mann
Project: Infrastructure Jenkins
Key: INFRA JENKINS - 2215 58958
Workflow: classic default workflow JNJira + In-Review
Component/s: gerrit-code-review-plugin
Component/s: github
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

imann04@gmail.com (JIRA)

unread,
Aug 15, 2019, 9:16:02 PM8/15/19
to jenkinsc...@googlegroups.com
isaac mann assigned an issue to lucamilanesio
Change By: isaac mann
Assignee: Daniel Beck lucamilanesio

luca.milanesio@gmail.com (JIRA)

unread,
Nov 24, 2019, 4:16:02 PM11/24/19
to jenkinsc...@googlegroups.com
Luca Domenico Milanesio commented on Improvement JENKINS-58958
 
Re: Use the same Jenkins workspace on a Change basis

The behaviour you see is a consequence of how Gerrit stores patch-sets, which is different from the way GitHub (for example) stores PRs.

Gerrit has a different ref for every patch-set, which results in a different build and workspace. GitHub, instead, uses the same ref (e.g. refs/pull/N/head) and thus has the same workspace.

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

andreas@unjo.com (JIRA)

unread,
Dec 5, 2019, 10:13:03 AM12/5/19
to jenkinsc...@googlegroups.com

How Gerrit internally stores and references Patchsets should be orthogonal to how we want to handle them in Jenkins/BlueOcean.

luca.milanesio@gmail.com (JIRA)

unread,
Jan 5, 2020, 2:19:02 PM1/5/20
to jenkinsc...@googlegroups.com

Generally speaking, yes. However, this plugin uses the multi-branch pipeline which has a 1:1 representation between a child job and a branch. Because the branch is different, then the job is different.

Does that makes sense?

For reusing cached results of past builds, have you looked at Bazel?

Reply all
Reply to author
Forward
0 new messages