jenkinsci / jenkinsci/cloudbees-folder-plugin
[JENKINS-42964] Job inside folder creates wrong nested structure
- Dominant language
- Java
- Stars
- 59
- Forks
- 117
- PR merge metrics
- No merged PRs in 30d
Description
When running a job inside a folder, the correct structure is not created:
==> vmware-iso: Downloading or copying ISO
vmware-iso: Downloading or copying:
file:///opt/iso/rhel-server-7.3-x86_64-dvd.iso==> vmware-iso: Creating virtual machine disk==> vmware-iso: Building and writing VMX file==> vmware-iso: Error creating VMX file: open rhel-7.3-x86_64/server_imaging/packer_rhel7_64.vmx: no such file or directory==> vmware-iso: Deleting output directory...Build 'vmware-iso' errored: Error creating VMX file: open rhel-7.3-x86_64/server_imaging/packer_rhel7_64.vmx: no such file or directory
The folder should not contain a nested 'server_imaging' since that is the actual name of the folder that contains the job:
server_imaging (this is a folder) -> packer_rhel7_74 (this is the job)
Once I moved the job out of the server_imaging folder, it executed and completed as expected.
The environment is using version 6.0.3 of the folder plugin, and Jenkins LTS 2.19.4
---
Originally reported by
jonnyx, imported from: Job inside folder creates wrong nested structure
Raw content of original issue
When running a job inside a folder, the correct structure is not created:
==> vmware-iso: Downloading or copying ISO
vmware-iso: Downloading or copying:
file:///opt/iso/rhel-server-7.3-x86_64-dvd.iso==> vmware-iso: Creating virtual machine disk==> vmware-iso: Building and writing VMX file==> vmware-iso: Error creating VMX file: open rhel-7.3-x86_64/server_imaging/packer_rhel7_64.vmx: no such file or directory==> vmware-iso: Deleting output directory...Build 'vmware-iso' errored: Error creating VMX file: open rhel-7.3-x86_64/server_imaging/packer_rhel7_64.vmx: no such file or directory
The folder should not contain a nested 'server_imaging' since that is the actual name of the folder that contains the job:
server_imaging (this is a folder) -> packer_rhel7_74 (this is the job)
Once I moved the job out of the server_imaging folder, it executed and completed as expected.
The environment is using version 6.0.3 of the folder plugin, and Jenkins LTS 2.19.4
Contributor guide
Assessment
This issue has not been assessed yet.