Last green build with trusty - here
Current failure build with xenial - here
Hey There - We recently toggled our build env dist to xenial and have an observation that our tests bailing out randomly. On xenial install_jdk phase we see -
sed: -e expression #1, char 1: unknown command: `,'
Not so assertive if dist change triggered this. Can someone help with some reference links / suggestions to debug this observation.
For our project we are leveraging openjdk11.
Thanks in advance for your help in this regards.
Cheers,
Saket.
Looks like the error is coming from
elif compgen -G "${jdkpath%/*}/$(travis_jinfo_file "$vendor" "$version")" &>/dev/null &&
declare -f jdk_switcher &>/dev/null; then
travis_cmd "jdk_switcher use \"$jdk\"" --echo --assert
if [[ -f ~/.bash_profile.d/travis_jdk.bash ]]; then
sed -i '/export \(PATH\|JAVA_HOME\)=/d' ~/.bash_profile.d/travis_jdk.bash
fi
else
export JAVA_HOME="$jdkpath"
export PATH="$JAVA_HOME/bin:$PATH"
if [[ -f ~/.bash_profile.d/travis_jdk.bash ]]; then
sed -i ",export JAVA_HOME=,s,=.\\+,=\"$JAVA_HOME\"," ~/.bash_profile.d/travis_jdk.bash
fi
fi
}
@joepvd Could you take a look?
Thanks.