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

Tool discovery in dockerized Pipelines #55

Open
SylivanKenobi opened this issue Sep 5, 2023 · 0 comments
Open

Tool discovery in dockerized Pipelines #55

SylivanKenobi opened this issue Sep 5, 2023 · 0 comments

Comments

@SylivanKenobi
Copy link
Member

SylivanKenobi commented Sep 5, 2023

If the pipeline runs in a docker container on a VM-Node the SharedLibrary can't find tools from inside the container because it only searches on the vm itself. In my Opinion this Method has to be extended to also search the PATH in the container.

As a workaround the path for the tool can be set manually:

environment {
  executable_kustomize_path = "/usr/local/bin"
}

Example Pipeline:

pipeline {
  agent {
    docker {
      image 'line/kubectl-kustomize'
      label 'docker'
    }
  }
  stages {
    stage('Test') {
      steps {
        kustomize("path/to/yamls")
      }
    }
  }
}
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