message: Jenkinsfile: Use distribution-specific artifacts
diff: #!groovy
  -def get_stages(ros_distribution){
  +def get_stages(ros_distribution, ubuntu_version) {
  node('docker') {
  step([$class: 'StashNotifier'])
  @@ -13,25 +13,26 @@ def get_stages(ros_distribution){
  dir('dist') {
  try {
  step([$class: 'CopyArtifact',
  - filter: 'libfranka-*-amd64.tar.gz',
  + filter: "libfranka-*-amd64-${ubuntu_version}.tar.gz",
  fingerprintArtifacts: true,
  projectName: "SWDEV/libfranka/${java.net.URLEncoder.encode(env.BRANCH_NAME, "UTF-8")}",
  selector: [$class: 'StatusBuildSelector', stable: false]])
  } catch (e) {
  // Fall back to develop branch.
  step([$class: 'CopyArtifact',
  - filter: 'libfranka-*-amd64.tar.gz',
  + filter: "libfranka-*-amd64-${ubuntu_version}.tar.gz",
  fingerprintArtifacts: true,
  projectName: "SWDEV/libfranka/develop",
  selector: [$class: 'StatusBuildSelector', stable: false]])
  }
  - sh '''
  - tar xfz libfranka-*-amd64.tar.gz
  + sh """
  + tar xfz libfranka-*-amd64-${ubuntu_version}.tar.gz
  ln -sf libfranka-*-amd64 libfranka
  - '''
  + """
  }
  - docker.build("franka_ros-ci-worker:${ros_distribution}", "-f src/franka_ros/.ci/Dockerfile.${ros_distribution} src/franka_ros/.ci").inside {
  + docker.build("franka_ros-ci-worker:${ros_distribution}",
  + "-f src/franka_ros/.ci/Dockerfile.${ros_distribution} src/franka_ros/.ci").inside {
  withEnv(["CMAKE_PREFIX_PATH+=${env.WORKSPACE}/dist/libfranka/lib/cmake/Franka",
  "ROS_HOME=${env.WORKSPACE}/ros-home"]) {
  stage('Build & Lint (Debug)') {
  @@ -52,10 +53,9 @@ def get_stages(ros_distribution){
  step([$class: 'StashNotifier'])
  }
  }
  -
  }
  parallel(
  - 'kinetic': get_stages('kinetic'),
  - 'melodic': get_stages('melodic'),
  + 'kinetic': get_stages('kinetic', 'xenial'),
  + 'melodic': get_stages('melodic', 'bionic'),
  )
  