0

Are there any possibilities to trigger my pipeline only, if there exists a special file in my filesystem.

So I want to start a new build on my pipeline at 9 p.m. But only, if there is the file run.xy on my filesystem.

1 Answer 1

1

At your Build periodically in Build Triggers section add 0 21 * * *. And pipeline start by something like this:

def folder = new File( 'filepath' ) // If it does exist if( folder.exists() ) { //run build } else { println "File doesn't exist" } 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.