Skip to content

jib builder: support for adding arguments to Maven on command line #3323

Open
@bjornmagnusson

Description

Need a way to be able to pass arbitrary arguments to Maven on command line, e.g for overwriting certain build properties. The current implementation does only support static arguments in skaffold.yaml but this is a bit different.

E.g. one situation I have faced is overriding location of docker registry when building images. When in office close to the docker registry hosted we use that one, but when outside office we have a need to be able to easily override that and point to another one, e.g. one hosted on local machine.

Expected behavior

Possible to add arbitrary arguments to jib builder when running skaffold dev/build/run

Actual behavior

Not possible to pass arguments

Information

  • Skaffold version: version...1.0.0
  • Operating system: ...Windows
  • Contents of skaffold.yaml:
apiVersion: skaffold/v1
kind: Config
build:
  artifacts:
  - image: startkit
    jib:
      project: :startkit-web-jar
      args:
      - -Pdocker
deploy:
  kubectl:
    manifests:
    - skaffold/k8s-*
portForward:
- resourceType: pod
  resourceName: startkit
  namespace: default
  port: 8080
  localPort: 8080

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions