【Git】 .gitignore ignores Jenkinsfile failure

question

When using .gitignoreignore Jenkinsfile, configure as follows:

### logs ####
/logs/
*.log

### Jenkinsfile ####
Jenkinsfile

But every submission gitlabstill hasJenkinsfile

solve

.gitignoreThe configuration needs to be modified to the previous .one:

### logs ####
/logs/
*.log

### Jenkinsfile ####
.Jenkinsfile

Leave a Comment

Your email address will not be published. Required fields are marked *