Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-70511

Jenkins pipeline get stuck

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

            iocanel Ioannis Canellos
            krishna_1997 krishna
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: