Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return recording link on stop #100

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Merge branch 'master' into returnRecordingLinkOnStop

e67ddb8
Select commit
Loading
Failed to load commit list.
Open

Return recording link on stop #100

Merge branch 'master' into returnRecordingLinkOnStop
e67ddb8
Select commit
Loading
Failed to load commit list.
Travis CI / Travis CI - Pull Request failed Jul 25, 2024 in 12m 21s

Build Failed

The build failed. This is a change from the previous build, which passed.

Details

This is a pull request build.

It is running a build against the merge commit, after merging #100 Return recording link on stop.
Any changes that have been made to the master branch before the build ran are also included.

Jobs and Stages

This build only has a single job.
You can use jobs to test against multiple versions of your runtime or dependencies, or to speed up your build.

Build Configuration

Build Option Setting
Language Java
Operating System Linux (Jammy)
JDK Version openjdk17
Build Configuration
{
  "language": "java",
  "os": [
    "linux"
  ],
  "dist": "jammy",
  "jdk": [
    "openjdk17"
  ],
  "git": {
    "depth": false
  },
  "addons": {
    "sonarcloud": {
      "organization": "ant-media-plugins",
      "token": "$SONAR_TOKEN"
    }
  },
  "before_install": [
    "openssl aes-256-cbc -K $encrypted_171b1c559d7b_key -iv $encrypted_171b1c559d7b_iv -in signingkey.asc.enc -out signingkey.asc -d",
    "export GPG_TTY=$(tty)",
    "gpg --batch --fast-import signingkey.asc",
    "sudo apt-get update -qq",
    "sudo apt-get install ffmpeg -qq -y",
    "(if [ $(git ls-remote https://github.com/ant-media/ant-media-server-parent.git $TRAVIS_BRANCH  | wc -l) == \"1\" ]; then echo \" $TRAVIS_BRANCH branch found\"; git clone --depth=1 -b $TRAVIS_BRANCH https://github.com/ant-media/ant-media-server-parent.git; else echo \"$TRAVIS_BRANCH branch not found. Checking out master\"; git clone --depth=1 https://github.com/ant-media/ant-media-server-parent.git; fi)",
    "cd ant-media-server-parent",
    "mvn clean install -DskipTests -Dmaven.javadoc.skip=true -Dgpg.skip=true --quiet",
    "cd ..",
    "(if [ $(git ls-remote https://github.com/ant-media/Ant-Media-Server.git $TRAVIS_BRANCH  | wc -l) == \"1\" ]; then echo \"$TRAVIS_BRANCH branch found in Ant-Media-Server\"; git clone --depth=1 -b $TRAVIS_BRANCH https://github.com/ant-media/Ant-Media-Server.git; else echo \"$TRAVIS_BRANCH branch not found. Checking out master\"; git clone --depth=1 https://github.com/ant-media/Ant-Media-Server.git; fi)",
    "cd Ant-Media-Server",
    "mvn clean install -DskipTests -Dmaven.javadoc.skip=true -Dgpg.skip=true --quiet",
    "cd .."
  ],
  "script": [
    "wget -O maven-metadata.xml https://oss.sonatype.org/service/local/repositories/snapshots/content/io/antmedia/ant-media-server/maven-metadata.xml",
    "export LATEST_SNAPSHOT=$(grep -o '<version>[^<]*</version>' maven-metadata.xml | tail -n 1 | sed 's/<\\/\\?version>//g')",
    "wget -O ant-media-server-community.zip \"https://oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots&g=io.antmedia&a=ant-media-server&v=${LATEST_SNAPSHOT}&c=community&e=zip\";",
    "wget https://raw.githubusercontent.com/ant-media/Scripts/master/install_ant-media-server.sh -O install_ant-media-server.sh  && chmod 755 install_ant-media-server.sh",
    "sudo ./install_ant-media-server.sh -i ant-media-server-community.zip",
    "sudo sed -i \"/server.cpu_limit=/c\\server.cpu_limit=100\" /usr/local/antmedia/conf/red5.properties",
    "sudo sed -i \"/server.memory_limit_percentage=/c\\server.memory_limit_percentage=100\" /usr/local/antmedia/conf/red5.properties",
    "cd SamplePlugin",
    "mvn clean install -Dmaven.javadoc.skip=true -Dmaven.test.skip=true -Dgpg.skip=true",
    "sudo cp target/PluginApp.jar /usr/local/antmedia/plugins",
    "ls /usr/local/antmedia/plugins",
    "sudo service antmedia restart",
    "sleep 20",
    "wget -O install_media-push-plugin.sh https://raw.githubusercontent.com/ant-media/Plugins/master/MediaPushPlugin/src/main/script/install_media-push-plugin.sh && chmod 755 install_media-push-plugin.sh",
    "sudo ./install_media-push-plugin.sh",
    "sudo rm /usr/local/antmedia/plugins/media-push.jar",
    "cd ../MediaPushPlugin",
    "rm  src/main/resources/*.js",
    "cd src/main/js",
    "npm install",
    "npm run build",
    "cd ../../..",
    "mvn clean install -DskipTests -Dgpg.skip=true --quiet",
    "sudo cp target/media-push-plugin.jar /usr/local/antmedia/plugins/",
    "ls /usr/local/antmedia/plugins/",
    "sudo service antmedia restart",
    "sleep 20",
    "mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent deploy org.jacoco:jacoco-maven-plugin:report sonar:sonar -DskipTests=false --settings ../mvn-settings.xml --quiet",
    "cd ../FilterPlugin",
    "mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent deploy org.jacoco:jacoco-maven-plugin:report sonar:sonar -Dsonar.projectKey=ant-media_plugins --settings ../mvn-settings.xml --quiet",
    "cd ../TensorflowPlugin",
    "mvn clean install -Dmaven.javadoc.skip=true -Dmaven.test.skip=true -Dgpg.skip=true",
    "cd ../ID3Converter",
    "mvn clean install -Dgpg.skip=true"
  ],
  "after_script": [
    "ls",
    "export FILE=hs_err_pid*.log",
    "(if  test -f $FILE ; then echo \"$FILE exists.\"; cat $FILE; else echo \"$FILE not exists.\"; fi)"
  ],
  "after_failure": [
    "sudo cat /usr/local/antmedia/log/ant-media-server.log",
    "echo \"----------------------------------------------\"",
    "sudo cat /usr/local/antmedia/log/antmedia-error.log",
    "sudo cat /usr/local/antmedia/hs_err_pid*.log",
    "sudo cat hs_err_pid*.log"
  ]
}