pipeline { agent any stages { stage('credits'){ when { changeset "./credits.txt"} steps { sh "echo '{"type": "gray_messages.directorial.execute_command", "command":"ttsa", "args":" '"'"this as well is a test"'"'"}' | kafka_2.13-3.4.0/bin/kafka-console-producer.sh --bootstrap-server localhost:9092 --topic gray_messages.directorial.execute_command" } } } }