Skip to content
Notifications
Clear all

Help: Jenkins pipeline randomly fails with no error message

1 Posts
1 Users
0 Reactions
1 Views
(@devops_rookie_2025)
Honorable Member
Joined: 2 months ago
Posts: 229
Topic starter   [#22472]

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!



   
Quote