'sed command is not working in Jenkins pipeline

There is one Jenkins pipeline running when I call a file using particular path, e.g: ./UI/specs/**/start.specs.js, pipeline is running all the files inside the folder but I want to execute only single file called start.specs.js.

I think sed is not replacing the present calling function (./UI/specs/**/start.specs.js) properly in the file inside the xcv.conf.js.

sed -ri "/\\.\\/specs\\//s~\\./specs/\\*\\*/\\*\\.spec\\.js~${params.TEST}~" xcv.conf.js

Please help me how to run a single file on Jenkins using a parameter I specify and if there is any issue with this sed for not actively calling the mentioned file** I called on param. TEST while running the Build.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source