sh '$WORKSPACE/script.sh' solved the problem.
On Tuesday, June 6, 2023 at 4:17:12 PM UTC+5:30 Mk wrote:
> I'm using Jenkins - 2.375.2 and both Jenkinsfile and script.sh files are
> in my github repository.
>
> My Jenkinsfile (Declarative Pipeline) content as follows,
> pipeline {
> agent
I'm using Jenkins - 2.375.2 and both Jenkinsfile and script.sh files are in
my github repository.
My Jenkinsfile (Declarative Pipeline) content as follows,
pipeline {
agent any
stages {
stage('Checkout') {
steps {
git url: 'g...@github.com:org/reposit