I have couple of bash functions I'd like to be automatically available in all bash environments on my Jenkins instance. I defined this in .bashrc file of the Jenkins user:
test () {
echo "Hello World!"
}
And I'd like it to be availble in all Jenkins jobs running in bash
#!/bin/bash
test
<rest of the script>