ivanilves/travelgrunt

View on GitHub
pkg/config/mode/jenkinsfile.go

Summary

Maintainability
A
0 mins
Test Coverage
package mode

import (
    "os"
    "strings"
)

// IsJenkinsfile tells us we operate on Jenkinsfile(s)
func IsJenkinsfile(d os.DirEntry) bool {
    return FileOrSymlink(d) && strings.Contains(strings.ToLower(d.Name()), "jenkinsfile")
}