whitesource-scan.run()
      whitesource-scan.pipeline(groovy.lang.Closure)
         whitesource-scan.timeout({time=7, unit=HOURS})
         whitesource-scan.echo(Executing on agent [label:none])
         whitesource-scan.cron(H 3 * * *)
         whitesource-scan.stage(Run the scan, groovy.lang.Closure)
            whitesource-scan.echo(Executing on agent [docker:[alwaysPull:true, args:-e LANG=en_US.UTF-8, containerPerStageRoot:false, label:Jenkins-Agent-AL2-X64-C54xlarge-Docker-Host, image:opensearchstaging/ci-runner:centos7-x64-arm64-jdkmulti-node10.24.1-cypress6.9.1-20211028, reuseNode:false, registryUrl:https://public.ecr.aws/, stages:[:]]])
            whitesource-scan.script(groovy.lang.Closure)
               whitesource-scan.string({credentialsId=jenkins-whitesource-scan-apikey, variable=wss_apikey})
               whitesource-scan.withCredentials([wss_apikey], groovy.lang.Closure)
                  whitesource-scan.echo(Executing WhiteSource Scan script)
                  whitesource-scan.sh(
        curl -SLO https://services.gradle.org/distributions/gradle-7.4.2-bin.zip
        unzip gradle-7.4.2-bin.zip
        GRADLE_HOME=`realpath gradle-7.4.2`
        export PATH=${GRADLE_HOME}/bin:$PATH
        gradle --version
        cd ./tools/vulnerability-scan/
        ./wss-scan.sh
    )
         whitesource-scan.cleanWs({disableDeferredWipeout=true, deleteDirs=true})
         whitesource-scan.echo(WhiteSource scan has been completed.)