Comments (3)
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.
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.
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)
- Pass the value for 'application' dynamically [Feature Request ?] HOT 2
- Enable IAM role to be used with role chaining
- Problem of archiving download hangs Jenkins job HOT 3
- [ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M1:enforce (display-info) on project aws-device-farm: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed.
- Does this plugin still store credentials in plain text? HOT 2
- [Feature Request] Support credentials providers and multiple different credentials HOT 1
- Not able to Schedule Run in Device Farm
- Update supported Appium version
- Jenkins Pipeline not failing when tests fail HOT 5
- Customer Artifacts/Customer Artifacts Log are missing while running through Jenkins plugin HOT 2
- Upload for web App test always fail when picking the unmetered device HOT 1
- NPE with 1.19 HOT 4
- NPE 1.20 HOT 1
- NPE with 1.20 HOT 2
- Specify Device State - Install other app parameter not showing HOT 3
- Add as a Build Step HOT 1
- Custom environment not listed HOT 3
- Too many open files problem HOT 3
- results trends and graphs not shown when using plugin with a multibranch pipeline project
- Is there a way to set Locale in the jenkins-plugin HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-device-farm-jenkins-plugin.