-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Major
-
Component/s: pipeline
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