Jenkins pipeline get stuck

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      I am trying to run my c pipeline in the windows docker.
      I have given working die as "/CI" since my path needs as "C:/CI"

      pipeline {
          agent {
              kubernetes{
                  customWorkspace '/CI'
                  '''
      apiVersion: v1
      kind: Pod
      spec:
        containers:
        - name: jnlp
          image: jenkins/inbound-agent:windowsservercore-1809
          tty: true
          workingDir: /ci
          env:
          - name: JENKINS_WEB_SOCKET
            value: true
          imagePullPolicy: Always
          resources:
            requests:
              cpu: 2
              memory: 4Gi
            limits:
              cpu: 2
              memory: 4Gi
          restartPolicy: Never
      '''
                  activeDeadlineSeconds  '12000'
              }
          }
      
          stages {
              stage ('Initiate') {
                  steps {
                      script {
                          container ("jnlp") {
                              print "${WORKSPACE}"
                              bat "dir"
                          }
                      }
                  }
              }
          }
      }
      

      When I run the pipeline for the it is getting stuck at the step execution

            Assignee:
            Unassigned
            Reporter:
            krishna
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: