Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to work with Organization folder #123

Open
DanieleSky opened this issue Oct 4, 2022 · 0 comments
Open

How to work with Organization folder #123

DanieleSky opened this issue Oct 4, 2022 · 0 comments

Comments

@DanieleSky
Copy link

Hi,
I'm using Jenkins with an Organization folder linked to my Gitea installation.
This is awesome because Jenkins scan the organization and create a multibranch pipeline for each repository that I have.

Now I would to use your plugin but I don't know how to do.

I created a repository with a branch for every repositories in organization. In each branch I have a folder called same the branch of the repository.

For example, this is the struct of the organization folder:

  • Organization "Org1"
    • Repository "Repo1"
      • Branch "master"
      • Branch "Branch1"
    • Repository "Repo2"
      • Branch "master"
    • Repository ....

The repository of jenkins files is:

  • Repository "RemoteJenkinsFile"
    • Branch "Repo1"
      • folder "master"
      • folder "branch1"
    • Branch "Repo2"
      • folder "master"

I am able to specify the branch name in Script Path field with the env variable BRANCH_NAME.
I throught to use the Branch Specifier to identiy the correct branch but I cannot have the repository name. There isn't in Jenkins a env variable for this value. I have think to use the env JOBS_NAME but is complete and the regex in Branch Specifier don't work.

How I can do this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant