Giter VIP home page Giter VIP logo

Comments (3)

appwiz avatar appwiz commented on September 25, 2024

I think you need to set Application to **/app-debug-unaligned.apk in the plugin settings. You should watch the AWS Device Farm Jenkins webinar for a complete walkthrough.

from aws-device-farm-jenkins-plugin.

brendan-tapslots avatar brendan-tapslots commented on September 25, 2024

I've had the same problem when trying to run this plug-in inside a freestyle job, called from a separate pipeline job (as a step).

def arg = "${WORKSPACE}/testemulator-01.apk"
build job: 'AwsDeviceFarmTest', parameters: [string(name: 'APPLICATION_PATH', value: arg)]`

Feeding in a parameter (APPLICATION_PATH -> "/path/to/workspace/testemulator-01.apk") correctly expands when echoing the 'Using App' step (as above in nagaraju's example) but then uses the literal value ("APPLICATION_PATH") when validating the file extension.

So either the first step is allowing the variable expansion by accident, or the filename validator methods (AWSDeviceFarm::uploadApp and/or AWSDeviceFarm::getOs) should also do the same.

from aws-device-farm-jenkins-plugin.

bajicdusko avatar bajicdusko commented on September 25, 2024

I've stumbled to this problem a year and a half after. ${WORKSPACE} does not work yet, when used in path, but writing the path as Ant GLOB pattern helps. So I end up with **/app/build/outputs/apk/app-debug-androidTest.apk. Which works.

Also double check the white space characters, especially at the end, as I've lost whole day because of this.
If you take a look at this line

if (appArtifact.toLowerCase().endsWith("apk")) {..}

it'll fail because of white space.

from aws-device-farm-jenkins-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.