Skip to content Skip to sidebar Skip to footer

Sed Fails When Running During Jenkins Process

I'm running a script that works locally. But when I run the script during our jenkins build process sed doesn't work. this is my code I verified the path is correct. The file is th

Solution 1:

Remove the SPACE between the -i and the two single quotes (') from your sed command. Often, the suffix must immediately follow the -i option with no spaces.

sed -i' ' "s|$line|var bagVer = \"$PACKAGE_VERSION\";|"  "$PWD"

Post a Comment for "Sed Fails When Running During Jenkins Process"