Jenkins cron job to run an OpenFaaS function every minute
pipeline { | |
agent any | |
triggers { cron('* * * * *') } | |
stages { | |
stage('Invoke') { | |
steps { | |
sh "curl -sL https://github.com/openfaas/faas-cli/releases/download/0.6.10/faas-cli > faas-cli" | |
sh "chmod +x faas-cli" | |
sh "echo Jenkins! | ./faas-cli invoke --gateway http://192.168.0.35:8080 figlet" | |
} | |
} | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.