Questions tagged [build]

16386 questions
1

votes
1

answer
665

Views

Docker: How to use multistage images after build finishes

Scenario Multistage builds combine multiple Dockerfile sections into a single one Intermediary and final stages can copy files from the upper stages Final stage is suggested to have only the binaries needed. With those in mind, I'd like to build the follow FROM fat-base as build RUN setup unit test...
Marcello de Sales
1

votes
2

answer
915

Views

VSTS - how to get Code Coverage results

I'm new to DevOps work and I've been tasked to setup a build for one of our .net Standard Library projects. I used the build template for this, which works great! But I want to add a code coverage into build output (there's a test project in the solution). In the 'VsTest - testAssemblies' task, I'...
Rob McCabe
1

votes
3

answer
797

Views

Failed to finalize session : INSTALL_FAILED_INVALID_APK: /data/app/…tmp/…-debug version code 29 inconsistent with 28

This error happens when i try to run the app on the simulator: It asks if it can uninstall the current application but there is no application installed on the simulator. If i click ok, just fails. I try to invalidate cache and restart, to reboot the pc, to create a new simulator, to update Android...
ByteArtisan
1

votes
1

answer
272

Views

Docker Multi-Stage: How to split up into multiple Dockerfiles

I am successfully using Docker's Multi-Stage feature to build some code and then copy the resulting artifacts into a final image. Is it possible to split this one big-ish Dockerfile into multiple files? I would like to improve the readability of the individual stages. Which will become more importan...
Unapiedra
0

votes
0

answer
8

Views

Error when building Netbeans 11.0 from source

I installed Apache Ant version 1.10.5 on my Windows 10 desktop system in order to build Netbeans 11.0 from source. I set the environmental variables and ant seems to be running properly. However, when I cd to the Netbeans folder and run ant to build it, I get the following error: BUILD FAILED E:\Net...
wllmkphrt
1

votes
1

answer
54

Views

Using VS2019 with TFS2018 vnext build system

Does anybody know if it is possible to use VS2019 with TFS2018 vnext build system. You cannot select VS2019 in the build definition, but you can select 'Latest' as version for Visual Studio. Unfortunately, this does not select VS2019. I have tested this in a virtual machine with VS2017 and VS2019 in...
PainElemental
1

votes
1

answer
154

Views

Could not find method leftShift() for arguments after updating studio 3.4

After updating studio 3.4 and Gradle version to 5.1.1 I got the error on my task as Could not find method leftShift() My task: task incrementBetaVersion
Bhuvanesh BS
0

votes
0

answer
6

Views

Multiple signingConfigs + flavor + buildType

I have several flavors, buildtypes and siginiConfig and everything is ready, but it never catches the sigini flavor. It always takes siginiConfig from buildType. I already checked all the documentation I found and I just saw examples that the buildtype did not have sigini, there are no examples of b...
Hugo
1

votes
1

answer
2.8k

Views

Detect OS and Java on Windows and Linux

I have a JavaFX project based on Maven. I want to build the Maven project on Windows and on Linux. In order to automate the process when I deploy the bundle I want to automatically detect the operating system. In windows I have this configuration: org.apache.maven.plugins maven-compiler-plugin 3.1 1...
Peter Penzov
1

votes
2

answer
576

Views

Promote build with Jenkins API

Given a Jenkins build job with different promotion jobs (i.e., that promote builds to different environments), how can one trigger a specific promotion job for a specific build using the Jenkins API?
blashmet
1

votes
1

answer
1.1k

Views

gradle build fails from terminal for lombok annotation in spring boot application

I am trying to generate war of spring boot application and using lombok for getter setter. Running gradle build command from terminal and getting error in all getter setter and constructors ie. can not find symbol. I am using STS and able run project successfully from sts. but from command line it t...
Anjali
1

votes
2

answer
98

Views

Getting Build Error after upgrading to Android Studio 3.2.1

My Build is failing with this error - Manifest merger failed with multiple errors, see logs Merging Errors it shows as - Error: Missing 'name' key attribute on element meta-data at AndroidManifest.xml:23:9-51 app main manifest (this file), line 22 Error: tools:replace specified at line:23 for att...
Nikhil
1

votes
2

answer
244

Views

Multi-stage Dockerfile: ARG before FROM not substituted

I'm writing a multi-stage Dockerfile for the darshan utils: ARG DARSHAN_VER=3.1.6 FROM fedora:29 as build RUN dnf install -y \ gcc \ make \ bzip2 bzip2-devel zlib zlib-devel RUN curl -O 'ftp://ftp.mcs.anl.gov/pub/darshan/releases/darshan-${DARSHAN_VER}.tar.gz' \ && tar ... FROM fedora:29 COPY --from...
Alberto Chiusole
1

votes
4

answer
353

Views

Duplicate key in provisioning profile causes build failure: error MSB4018

My Xamarin build tasks are failing in my Azure Dev Ops pipeline with: error MSB4018: The 'DetectSigningIdentity' task failed unexpectedly. error MSB4018: System.ArgumentException: An item with the same key has already been added. Key: com.apple.developer.associated-domains On opening the provisionin...
Magic Bullet Dave
1

votes
1

answer
41

Views

Ant build script - if condition check with multiple values

I need to compare list of related environments and perform the operation if any of the environment is matching with the passed argument environment. The below code compares each value at time. I don't want to write for each of the environment as i need to perform the same operation of a group of e...
Rajashree Gr
1

votes
1

answer
112

Views

Azure DevOps passing Dynamically assigned variables between build hosts

I'm using Azure DevOps on a vs2017-win2016 build agent to provision some infrastructure using Terraform. What I want to know is it possible to pass the Terraform Output of a hosts dynamically assigned IP address to a 2nd Job running a different build agent. I'm able to pass these to build variables...
stravze
1

votes
2

answer
46

Views

Importing styles in angular.json vs importing in styles.css?

What is the difference between importing styles in angular.json and importing in styles.css? Importing in angular.json Importing in styles.css Hope to have explained my question well. Thanks in advance.
Elkin
2

votes
0

answer
22

Views

How to fix this error AAPT2 error: check logs for details?

I have a problem with my android studio. When I want to create a project or I want to open my previous project get this error AAPT2 error: check logs for details and when I check logs take this error error: attribute 'com.example.mahdi.servicemanager:headerLayout' not found. My project was already...
abbas jafary
4

votes
0

answer
129

Views

xcodebuild not doing incremental builds

I recently checked out a fresh version of our iOS app from git and built from command line via xcodebuild. I then built a second time using the exact same command, while making no changes to files in the repo whatsoever (not even opening them). I expected the second build to take no time at all, but...
Jason
0

votes
0

answer
4

Views

How to build Springboot application locally while connecting to AWS serverless aurora database?

Since AWS serverless Aurora DB runs in a VPC, there is no way to build the spring boot application locally and deploy it to AWS lambda. Is there a way to do it ? I have created a AWS serverless aurora db. I have created a springboot application which uses JPA to connect to the db. But the build give...
ranjit
1

votes
0

answer
1.3k

Views

Error:No installed build tools found. Install the Android build tools version 19.1.0 or higher

I am working on android project and every thing works fine, but when I started a new cordova project then it throw error Error:No installed build tools found. Install the Android build tools version 19.1.0 or higher. I search on google and in most of answer says change in ANDROID_PATH. My current AN...
Vivek
1

votes
0

answer
275

Views

cannot build tensorflow in Ubuntu 1604

My Env: Ubuntu 1604 Python 3.5.2 bazel 0.9.0 JDK 1.8.0_152 My problem: I have ran the command ./configure before built the tensorflow source code. But I till get following error: no such target '@local_config_git//:gen/spec.json': target 'gen/spec.json' not declared in package ...... Please speci...
YunFei
1

votes
1

answer
2k

Views

BuildException: Failed to execute aapt

I am trying to build the project and following error is coming: org.gradle.tooling.BuildException: Failed to execute aapt at com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask.invokeAaptForSplit(LinkApplicationAndroidResourcesTask.java:547) at com.android.build.gradle.internal...
Malwinder Singh
1

votes
0

answer
39

Views

Team City Build Branches on Checkin

I am working on setting up a new build server using Team City 2017.2. Our source control (TFS 2015) is structured like this: Trunk Branches Branch1 DEV UAT Branch2 DEV UAT etc... I have setup a build that is working using a vs root pointed at a specific DEV branch and Trunk. Each new project gets it...
Wayne
1

votes
1

answer
35

Views

Updating play services without reducing minSdkVersion

I use the following play services library in my android project. play-services-location,play-services-auth and play-services-gcm. The library are in version 9.2.0.I have the minSdkVersion as 9. I recently added the VerifyApps API into the project and in order to use that library properly I had to ad...
Nirmal Raj
1

votes
2

answer
3.4k

Views

The process cannot access the file because it is being used by another process. Jenkins Build

When we abort one of the Jenkins Job builds running on windows slave, and then try to retrigger, that new triggered build fails with below error: The process cannot access the file because it is being used by another process. while deleting the workspace.
Anurag Sharma
1

votes
0

answer
373

Views

In the building tool `parcelJs` how to export to global

In Webpack there is a way to config all export parts on the entery file as a gloabl object, like you expect from lib (moment.js or jQuery for example ) But is look like the new building tool parcel can't do that. as far asI can read in the documention . but i proberayly miss somthing beause it seem...
pery mimon
1

votes
2

answer
294

Views

Maven Could not find artifact after downloading from Nexus

we have got a problem. I set up job on jenkins and while building a project it fetches artifacts from nexus. But even though it downloaded them job failed with artifacts could not be found. It happened only to artifacts we manually imported to the nexus. Any hints? [INFO] Downloading: http://xxx/nex...
user2796482
1

votes
0

answer
273

Views

Unity Cloud Build link with Continuous Integration systems

After a successful build in Unity Cloud Build I would like to send the generated .zip file url to a Continuous Integration system like Travis CI in order to to deploy that file into another server. To do this right now I need to call a custom webhook in my own server that checks (via API) the last b...
Alejandro Morán
1

votes
1

answer
862

Views

Android NDK - building native libraries without Android Studio

I'm working on a c/c++ cross-platform project, constructed of 2 main libraries (with a few external dependencies: ssl, yajl, fribidi). The android solution will include Java files and a JNI layer, all bundled in a AAR file (including assets and the native libs). I managed to build the whole projec...
Rami Rosenbaum
1

votes
0

answer
135

Views

React Native project build failed after installing new module

When I install any new module in my previously build React Native project and trying to run then it fails to build. I also uninstalled previously build app from my android emulator and tried again but it failed again. whats the actual problem and whats the solution?
Mudassir Zakaria
1

votes
1

answer
213

Views

Tips for reducing size of .dylib and .so

I'm trying to compile the SDK manually, but the generated .dylibs and .so are over 70mb in size: ➜ lib ✗ pwd /Users/gond/opencv/build/lib ➜ lib ✗ du -h . 71M This is the command I'm using: cmake -D CMAKE_BUILD_WITH_INSTALL_RPATH=ON \ -D CMAKE_INSTALL_PREFIX=/usr/local .. Is there any way t...
John M.
1

votes
0

answer
189

Views

downgrading QT-5.7 to QT-5.4 in Yocto( morty 2.2) for nitrogen6sx

I am compiling yocto source for nitrogen6sx and try to downgrade the QT version from QT-5.7 to Qt-5.4and I am getting below error click on link for full error qt_base eroor steps to down grade: vi qt5-git.inc change the version name make[4]: *** [.obj/qkmsintegration.o] Error 1 | make[4]: Leavin...
rehana
1

votes
0

answer
89

Views

Bypass the faulty gcc “-mcygwin” argument, when building a library on python-3.4 on windows, through cygwin

I have the following problem: I want to build an external library of python on Windows through a script that uses gcc. When the script reaches the command: python setup.py build --compiler=cygwin, the following command is generated (that crashes): C:\cygwin64\bin\gcc.exe -mcygwin -mdll -O -Wall...
John Sig
1

votes
2

answer
294

Views

TFS agent pool roles not able to add specific user

On our on-premise TFS 2017 update 2 I want to add an extra user to the Agent Pool role as an administrator. For some reason I can not find all users in the domain. In the image you can see that the user TFSBuild was added previously, but now when when searching or it it can not be found. I know for...
Remkop
1

votes
2

answer
379

Views

How do I automatically trigger email notification with custom message after deployment (in CD pipeline) in VSTS

I have a CD pipeline with Azure Deploy task and I want to trigger a email notification to developers after successful deployment but with custom message. I researched on 'Send Email' task but it requires an SMTP server (say google SMTP). is there a feature within VSTS to trigger a mail?
vignesh srinivasan
1

votes
1

answer
258

Views

Docker compose build relative path

creditcard-monk: build: context: ./creditcard dockerfile: Dockerfile args: JAR_FILE: target/creditcard-1.0.0.jar Docker compose version 3.0. The jar_file argument is used to copy the jar-file to spring-boot jar under docker container I get the error failed to build: COPY failed: stat /var/lib/docker...
Fryder
1

votes
0

answer
366

Views

Run Java Program in Terminal from Sublime Text 3 [Mac OS]

What build system in Sublime Text 3 would you have to use to run java programs in the given Mac terminal (the one that appears when you use Spotlight, shell is called bash I think.)? Below is the code I am currently using, I have tried a bunch of changes, but I can only get the terminal to open up,...
fawrgoring
1

votes
1

answer
82

Views

Unity3D gives hundrends of errors when building the game

so my Unity worked fine until now, last time I built the game was yesterday and everything worked fine. Since yesterday the only thing that I did is that I changed some colliders and removed facebook gamecenter plugin. Now, when I try to play the game, everything is fine, but when I try to build it,...
Samuel V.
1

votes
0

answer
228

Views

Google PlayResolver in Unity Automated Build

I have a repository containing my game, and inside it is firebase messaging and analytics SDK imported from the .unitypackage BUT i don’t have the android dependencies installed (the ones that Play Resolver download i guess using gradle). So in a normal flow using the unity editor, play resolver w...
Martin Gonzalez

View additional questions