2

How can we use the Docker image for the Android and Java SDK instead of setting the manual path of Android and Java inside the Manage Jenkin option?

I have done in the Gitlab to create the multiple apk on each Git push with the help of .gitlab-ci.yml. Is same type of file will be use in case of Jenkin? Please check the below links
1). First link
2). Second link

Just like Gitlab apk/build creation I need to perform same operation in Jenkin.

How to use this below docker image of Android SDK 30 which are as below please check it once

enter image description here

I am using this Docker image from this reference, please check it once Click here

Hasan Haghniya
  • 2,347
  • 4
  • 19
  • 29
Ravindra Kushwaha
  • 7,846
  • 14
  • 53
  • 103
  • could you provide the script you are using in jenkins – Farhaan Shaik Aug 23 '21 at 10:14
  • I have not created script right now, can you please guide me on it – Ravindra Kushwaha Aug 23 '21 at 11:50
  • create a pipeline job in jenkins in the following format and perform your operation in build pipeline { agent any tools { maven 'Maven' } stages { stage('Clean Workspace') { steps { cleanWs() } } stage('Clone Repository') { steps { } } stage('Build') { steps { } } stage('Test') { steps { } } } } – Farhaan Shaik Aug 23 '21 at 13:41
  • Thanks for the update, But I need the docker image in my Jenkin to create the build/apk of android – Ravindra Kushwaha Aug 23 '21 at 13:42
  • ok please give me details i will create a docker file for you which you can use in the above script to build apk – Farhaan Shaik Aug 23 '21 at 13:50
  • I am just telling my requirement :- I want to create apk/build on wach push on my git account , for it I need to use the docker image. I am using this docker [click here](https://hub.docker.com/r/androidsdk/android-30) .. all this set-up i need to do in my local system – Ravindra Kushwaha Aug 23 '21 at 13:56
  • Let us [continue this discussion in chat](https://chat.stackoverflow.com/rooms/236320/discussion-between-farhaan-ahmed-and-ravindra-kushwaha). – Farhaan Shaik Aug 23 '21 at 14:02
  • @farhaanahmed Any update on it? – Ravindra Kushwaha Aug 27 '21 at 14:35

0 Answers0