I am practicing a CI workflow using cowsay as an app with a local git repository. I have a docker-compose that builds three docker containers: a Jenkins, a gitLab and an Artifactory. all three use a named volume to store consistent data. I am running a multi-branch pipeline based on a Jenkinsfile (declarative) and a webhook for push events. So far so good. BUT - Jenkins is STUCK on an old version of Jenkinsfile. Solutions I tried:
- I manually emptied jenkins-home from all versions of Jenkinsfile I could find (I looked in ~/jobs/<job_name> and in ~/caches )
- I deleted Jenkins entirely and re-built the image, including a volume prune.
- I migrated files manually into a new repository
- I used "git filter-branch" to delete all version of Jenkinsfile from all branches and commits.
- I manually rewrote (not copy-paste) the Jenkinsfile
- I event went as desprate as to clean my entire browser cache for no reason.
Jenknis refuses to re-cache and in some bizzare way keeps running this line: "docker build -t cowsay/master ." which is non-existant in the Jenkinsfile.
I can't find any more caches to clean other than. Help?
EDIT: I am not running any commands. This is configured so the Jenkins job runs upon a 'git push' to any branch. The error I am seeing is this line: +docker build -t 'cowsay' . It's a line that used to be in the Jenkinsfile in one of the stages, but isn't for at least the last 5 commits/pushes. This line causes an error that fails the job.
I have never experienced this failure myself but here a couple of things I would try to debug what's wrong: