Hi ,
I guess Workslow step does not create the workspace unless any write activity is done in the workspace . I gues node{} does not create workspace. I see Jenkins issue which is open
https://issues.jenkins-ci.org/browse/JENKINS-56867?page=com.atlassian.jira.plugin.system.issuetabpanels%3Achangehistory-tabpanel
i have two steps one copies the file in workspace during the run which works fine , the other step which does not do anything if i use it i always get below error
Process working directory '/home/nbhoski/.jenkins/workspace/command_pipeline' doesn't exist!
Script is :
pipeline {
agent any
environment {
PATH = "${PATH}:/usr/local/TOOL/bin"
}
stages{
stage('Run Tests') {
steps
{
runCommand('pwd')
}
}
}
}
Same will work if cpoy or touch some file in workspace. Is it a known issue or any recommendation ?
Regards
Nikhil