Hi everyone! I'm still pretty new to Jenkins and I've hit a really confusing wall. My declarative pipeline runs fine most of the time, but about 20% of runs just... stop. The console output ends abruptly with no error message, and the build is marked as FAILURE. It's usually at different stages too.
Here's a simplified version of my `Jenkinsfile`:
```groovy
pipeline {
agent any
stages {
stage('Build') {
steps {
sh 'docker build -t my-app .'
}
}
stage('Test') {
steps {
sh 'docker run my-app npm test'
}
}
// Sometimes it fails here, sometimes later
stage('Push') {
steps {
sh 'docker tag my-app my-registry/app'
sh 'docker push my-registry/app'
}
}
}
}
```
The console log just cuts off, sometimes after `docker push`, sometimes after `npm test`. I've checked disk space and memory on the agentβseems okay. Is this a common thing for beginners to run into? Any idea where I should even start looking? Thanks in advance for any guidance!