<p>I have a github repository which has multiple microservices projects. Each of these projects are in separate folders along with corresponding Dockerfile and build configurations. Each of these projects are implemented using different languages and those include Java, Go, Javascript and C#. I have one kubernates manifest file which takes care of deploying these microservices on a kubernates cluster. I use skaffold to stitch image building and deployment.</p>

<p>When I import this repository using jx command, the configuration files generated (Dockerfile, Jenkinsfile and  skaffold.yaml) by Jenkins X is not in order and build breaks.</p>

<p>When I separate each project into own repository it works fine.</p>

<p>skaffold.yaml</p>

<ul>
<li>image: service1
context: src/service1
deploy:
kubectl:
manifests:

<ul>
<li>./kub-manifests/**.yaml</li>
</ul></li>
</ul>

<p>./kub-manifests/service1.yaml</p>

<pre><code>apiVersion: v1
kind: Deployment
metadata:
  name: service1
spec:
  template:
    metadata:
      labels:
        app: service1
    spec:
      terminationGracePeriodSeconds: 10
      containers:
      - name: server
        image: service1
        ports:
        - containerPort: 9000
        env:
        - name: PORT
          value: "9000"
        resources:
          requests:
            cpu: 150m
            memory: 150Mi
          limits:
            cpu: 300m
            memory: 300Mi

---
apiVersion: v1
kind: Service
metadata:
  name: service1
spec:
  type: ClusterIP
  selector:
    app: service1
  ports:
  - name: grpc
    port: 9000
    targetPort: 9000
</code></pre>

<p>How should I import such projects into Jenkins X such that's its able to build and deploy each projects to the same cluster?</p>

prasanna h
<p>see <a href="https://jenkins-x.io/docs/using-jx/faq/#how-can-i-use-a-monorepo" rel="nofollow noreferrer">this</a> FAQ entry</p>

<p>you'll need to create your own custom pipeline. It'd be easier to split things up so you have 1 microservice per repository then you don't have to create a custom pipeline</p>
