jenkinsci / jenkinsci/gitlab-plugin

Not honouring 'check out to sub dir' in declarative pipeline

Open
#1,000 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.4k
Forks
615
Avg merge
4h 32m
Merged PRs (30d)
10

Description

In the current setup we use, all pipelines are checked out to a sub directory, for example

${WORKSPACE}/dir1

However in the GitLab plugin, when using the CI feature this is not being read in, so the Jenkinsfile itself is not being found.

If i add the full working path this is resolved, but would be good for continuity if the 'check out to a sub-directory' was being used.

Current workaround to get sub-dir:
![workaround](https://user-images.githubusercontent.com/57091109/67666347-8336dc80-f963-11e9-8c9b-7fd994900d37.png)

What is was prior to gitlab plugin
![beforeGitLabPlugin](https://user-images.githubusercontent.com/57091109/67666391-98ac0680-f963-11e9-8363-752f178adaf6.png)

Using gitlab plugin 1.5.13
Jenkins 2.190.1

Host OS is Windows 10

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.