[JIRA] (JENKINS-62082) Multibranch pipeline: checkout to subdirectory or exclude some paths from cleanup

7 views
Skip to first unread message

pkruk@parasoft.com (JIRA)

unread,
Apr 28, 2020, 11:55:02 AM4/28/20
to jenkinsc...@googlegroups.com
Piotr Krukowiecki created an issue
 
Jenkins / New Feature JENKINS-62082
Multibranch pipeline: checkout to subdirectory or exclude some paths from cleanup
Issue Type: New Feature New Feature
Assignee: Unassigned
Components: pipeline
Created: 2020-04-28 15:54
Labels: multibranch
Priority: Minor Minor
Reporter: Piotr Krukowiecki

My use case:

  • I want to have clean checkout (no artefacts from previous build, no modified files etc)
  • I want to keep some additional files/folders (not in repository)

The additional files are files which are downloaded during build (let's say data files). Once they are downloaded, there's no need to re-download them again.

The problem:

  • multi-branch pipeline clones and checkouts directly in workspace
  • there is no way to exclude some files/folders in "Clean before/after checkout" additional behaviour in multi-branch pipeline

If multi-branch could clone/checkout into a subfolder, I could keep the extra files next to the repository, and use "Clean..." on the repository - it would not affect my extra files.

If mult-branch could exclude some files/folders in "Clean...", I could download the extrac files to some folder inside my repo, use "Clean..." but exclude this folder.

Is there another way?

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

pkruk@parasoft.com (JIRA)

unread,
Apr 28, 2020, 11:56:03 AM4/28/20
to jenkinsc...@googlegroups.com
Piotr Krukowiecki updated an issue
Change By: Piotr Krukowiecki
My use case:
* I want to have clean checkout (no artefacts from previous build, no modified files etc)
* I want to keep some additional files/folders which are not in repository


The additional files are files which are downloaded during build (let's say data files). Once they are downloaded, there's no need to re-download them again.

The problem:
* multi-branch pipeline clones and checkouts directly in workspace
* there is no way to exclude some files/folders in "Clean before/after checkout" additional behaviour in multi-branch pipeline


If multi-branch could clone/checkout into a subfolder, I could keep the extra files next to the repository, and use "Clean..." on the repository - it would not affect my extra files.

If mult-branch could exclude some files/folders in "Clean...", I could download the extrac extra files to some folder inside my repo, use "Clean..." but exclude this folder.

Is there another way?

pkruk@parasoft.com (JIRA)

unread,
Apr 28, 2020, 11:56:03 AM4/28/20
to jenkinsc...@googlegroups.com
Piotr Krukowiecki updated an issue
My use case:
* I want to have clean checkout (no artefacts from previous build, no modified files etc)
* I want to keep some additional files/folders ( which are not in repository )

The additional files are files which are downloaded during build (let's say data files). Once they are downloaded, there's no need to re-download them again.

The problem:
* multi-branch pipeline clones and checkouts directly in workspace
* there is no way to exclude some files/folders in "Clean before/after checkout" additional behaviour in multi-branch pipeline

If multi-branch could clone/checkout into a subfolder, I could keep the extra files next to the repository, and use "Clean..." on the repository - it would not affect my extra files.

If mult-branch could exclude some files/folders in "Clean...", I could download the extrac files to some folder inside my repo, use "Clean..." but exclude this folder.

Is there another way?

pkruk@parasoft.com (JIRA)

unread,
Apr 28, 2020, 12:01:02 PM4/28/20
to jenkinsc...@googlegroups.com
Piotr Krukowiecki updated an issue
My use case:
* I want to have clean checkout (no artefacts from previous build, no modified files etc)
* I want to keep some additional files/folders which are not in repository

The additional files are files which are downloaded during build
(let's say data files) . Once they are downloaded, there's no need to re-download them again. (To be more specific, I have a job which builds a vscode extension and runs tests. vscode tests automatically download vscode executable if it does not exists in specific subfolder. Becauses git cleanup is enabled it deletes the downloaded vscode and it's re-downloaded with each build).

The problem:
* multi-branch pipeline clones and checkouts directly in workspace
* there is no way to exclude some files/folders in "Clean before/after checkout" additional behaviour in multi-branch pipeline

If multi-branch could clone/checkout into a subfolder, I could keep the extra files next to the repository, and use "Clean..." on the repository - it would not affect my extra files.

If mult-branch could exclude some files/folders in "Clean...", I could download the extra files to some folder inside my repo, use "Clean..." but exclude this folder.

Is there another way?
Reply all
Reply to author
Forward
0 new messages