From 95b75a74e34f16fcc102cf0c2af5e2589c3ee95e Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Fri, 9 Oct 2020 09:30:46 +0000 Subject: [PATCH 01/69] Create release Automatically using gitlab Releases Api --- .gitlab-ci.yml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fff35a132..2e6e9467b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -26,12 +26,4 @@ cache: build: stage: build script: - - echo sdk.dir $ANDROID_HOME > local.properties - - echo mapbox.key $MAPBOX_KEY >> local.properties - - echo mapbox.enabled true >> local.properties - - export TERM=dumb - - export JAVA_OPTS="-XX:+CMSClassUnloadingEnabled -XX:+HeapDumpOnOutOfMemoryError -Xmx4096m" - - ./gradlew assemble - artifacts: - paths: - - play-services-core/build/outputs/apk/ + - curl -H "PRIVATE-TOKEN: $SSH_PRIVATE_KEY" "https://gitlab.e.foundation/api/v4/projects/${CI_PROJECT_ID}/releases" -- GitLab From b3f654bc7238c3f37e9ee8e6b8d336ef736d6125 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Fri, 9 Oct 2020 09:50:06 +0000 Subject: [PATCH 02/69] Update .gitlab-ci.yml --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2e6e9467b..eaba015f8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -26,4 +26,4 @@ cache: build: stage: build script: - - curl -H "PRIVATE-TOKEN: $SSH_PRIVATE_KEY" "https://gitlab.e.foundation/api/v4/projects/${CI_PROJECT_ID}/releases" + -curl --header "PRIVATE-TOKEN: $SSH_PRIVATE_KEY" "https://gitlab.e.foundation/api/v4/projects/${CI_PROJECT_ID}/releases" -- GitLab From 53be59022ee7d0f158e03063e73cee0af983e383 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Fri, 9 Oct 2020 10:55:30 +0000 Subject: [PATCH 03/69] Create auto release from ci --- .gitlab-ci.yml | 31 +++---------------------------- 1 file changed, 3 insertions(+), 28 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index eaba015f8..07884a958 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,29 +1,4 @@ -image: "registry.gitlab.e.foundation:5000/e/apps/docker-android-apps-cicd:latest" - -stages: -- build - -variables: - GIT_SUBMODULE_STRATEGY: recursive - -before_script: -- if [ -d "/srv/userscripts" ]; then cp -R userscripts/* /srv/userscripts ; fi -- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' -- eval $(ssh-agent -s) -- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null -- mkdir -p ~/.ssh -- chmod 700 ~/.ssh -- echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts -- chmod 644 ~/.ssh/known_hosts -- export GRADLE_USER_HOME=$(pwd)/.gradle -- chmod +x ./gradlew - -cache: - key: ${CI_PROJECT_ID} - paths: - - .gradle/ - -build: - stage: build +release_upload: + image: registry.gitlab.com/gitlab-org/release-cli:v0.1.0 script: - -curl --header "PRIVATE-TOKEN: $SSH_PRIVATE_KEY" "https://gitlab.e.foundation/api/v4/projects/${CI_PROJECT_ID}/releases" + - gitlab-releaser create --name="My Release" --description="My Release description" -- GitLab From 787a47ef5c20edd0a9fd5a9254a102693d79762b Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Mon, 12 Oct 2020 06:42:03 +0000 Subject: [PATCH 04/69] Update .gitlab-ci.yml --- .gitlab-ci.yml | 43 ++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 40 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 07884a958..7ed0ea4f2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,41 @@ -release_upload: - image: registry.gitlab.com/gitlab-org/release-cli:v0.1.0 +image: "registry.gitlab.e.foundation:5000/e/apps/docker-android-apps-cicd:latest" + +stages: +- build + + URL: https://gitlab.e.foundation/api/v4/projects/24/releases + AUTH: "JOB-TOKEN: $CI_JOB_TOKEN" + +variables: + GIT_SUBMODULE_STRATEGY: recursive + +before_script: +- if [ -d "/srv/userscripts" ]; then cp -R userscripts/* /srv/userscripts ; fi +- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' +- eval $(ssh-agent -s) +- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null +- mkdir -p ~/.ssh +- chmod 700 ~/.ssh +- echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts +- chmod 644 ~/.ssh/known_hosts +- export GRADLE_USER_HOME=$(pwd)/.gradle +- chmod +x ./gradlew + +cache: + key: ${CI_PROJECT_ID} + paths: + - .gradle/ + +build: + stage: build script: - - gitlab-releaser create --name="My Release" --description="My Release description" + - echo sdk.dir $ANDROID_HOME > local.properties + - echo mapbox.key $MAPBOX_KEY >> local.properties + - echo mapbox.enabled true >> local.properties + - export TERM=dumb + - export JAVA_OPTS="-XX:+CMSClassUnloadingEnabled -XX:+HeapDumpOnOutOfMemoryError -Xmx4096m" + - curl -X POST "${URL}" -H ${AUTH} + + + + -- GitLab From a408ee102896c1cdaaecde8961c8312b1bad6391 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Mon, 12 Oct 2020 06:46:23 +0000 Subject: [PATCH 05/69] Update .gitlab-ci.yml --- .gitlab-ci.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7ed0ea4f2..63f89529f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,9 +3,6 @@ image: "registry.gitlab.e.foundation:5000/e/apps/docker-android-apps-cicd:latest stages: - build - URL: https://gitlab.e.foundation/api/v4/projects/24/releases - AUTH: "JOB-TOKEN: $CI_JOB_TOKEN" - variables: GIT_SUBMODULE_STRATEGY: recursive @@ -34,8 +31,4 @@ build: - echo mapbox.enabled true >> local.properties - export TERM=dumb - export JAVA_OPTS="-XX:+CMSClassUnloadingEnabled -XX:+HeapDumpOnOutOfMemoryError -Xmx4096m" - - curl -X POST "${URL}" -H ${AUTH} - - - - + - 'curl -X POST "https://gitlab.e.foundation/api/v4/projects/24/releases" -H "JOB-TOKEN: $CI_JOB_TOKEN"' -- GitLab From 905cbd3d4d7c28348de901e7319c456abbec6cb9 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Mon, 12 Oct 2020 06:48:58 +0000 Subject: [PATCH 06/69] Update .gitlab-ci.yml --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 63f89529f..f1d1339f7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -31,4 +31,4 @@ build: - echo mapbox.enabled true >> local.properties - export TERM=dumb - export JAVA_OPTS="-XX:+CMSClassUnloadingEnabled -XX:+HeapDumpOnOutOfMemoryError -Xmx4096m" - - 'curl -X POST "https://gitlab.e.foundation/api/v4/projects/24/releases" -H "JOB-TOKEN: $CI_JOB_TOKEN"' + - 'curl -X POST "https://gitlab.e.foundation/api/v4/projects/149/releases" -H "JOB-TOKEN: $CI_JOB_TOKEN"' -- GitLab From fc98b3985dcf55423444f4db2f57481c55ce2739 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Mon, 12 Oct 2020 09:25:29 +0000 Subject: [PATCH 07/69] Update .gitlab-ci.yml --- .gitlab-ci.yml | 36 +++--------------------------------- 1 file changed, 3 insertions(+), 33 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f1d1339f7..07884a958 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,34 +1,4 @@ -image: "registry.gitlab.e.foundation:5000/e/apps/docker-android-apps-cicd:latest" - -stages: -- build - -variables: - GIT_SUBMODULE_STRATEGY: recursive - -before_script: -- if [ -d "/srv/userscripts" ]; then cp -R userscripts/* /srv/userscripts ; fi -- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' -- eval $(ssh-agent -s) -- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null -- mkdir -p ~/.ssh -- chmod 700 ~/.ssh -- echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts -- chmod 644 ~/.ssh/known_hosts -- export GRADLE_USER_HOME=$(pwd)/.gradle -- chmod +x ./gradlew - -cache: - key: ${CI_PROJECT_ID} - paths: - - .gradle/ - -build: - stage: build +release_upload: + image: registry.gitlab.com/gitlab-org/release-cli:v0.1.0 script: - - echo sdk.dir $ANDROID_HOME > local.properties - - echo mapbox.key $MAPBOX_KEY >> local.properties - - echo mapbox.enabled true >> local.properties - - export TERM=dumb - - export JAVA_OPTS="-XX:+CMSClassUnloadingEnabled -XX:+HeapDumpOnOutOfMemoryError -Xmx4096m" - - 'curl -X POST "https://gitlab.e.foundation/api/v4/projects/149/releases" -H "JOB-TOKEN: $CI_JOB_TOKEN"' + - gitlab-releaser create --name="My Release" --description="My Release description" -- GitLab From 17cfa5cc4469081b29b6576ea9f98d74f89b99dd Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Tue, 13 Oct 2020 09:00:18 +0000 Subject: [PATCH 08/69] Update .gitlab-ci.yml --- .gitlab-ci.yml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 07884a958..b757f64ba 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,19 @@ -release_upload: - image: registry.gitlab.com/gitlab-org/release-cli:v0.1.0 +stages: + # - test + # - build + # - deploy + # - prepare + - release + +auto-release-master: + image: registry.gitlab.com/gitlab-org/release-cli + + stage: release + script: - - gitlab-releaser create --name="My Release" --description="My Release description" + - echo "Release 1" + release: + name: "Release v1" + description: "Created using the release-cli" + tag_name: v1 + ref: $CI_COMMIT_SHA -- GitLab From dcac0a2e499fcf6a5983db0a2e33e84647391a01 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Wed, 14 Oct 2020 07:47:26 +0000 Subject: [PATCH 09/69] Update .gitlab-ci.yml --- .gitlab-ci.yml | 50 ++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 36 insertions(+), 14 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b757f64ba..e08785411 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,19 +1,41 @@ +image: "registry.gitlab.e.foundation:5000/e/apps/docker-android-apps-cicd:latest" + stages: - # - test - # - build - # - deploy - # - prepare - - release +- build + +variables: + GIT_SUBMODULE_STRATEGY: recursive -auto-release-master: - image: registry.gitlab.com/gitlab-org/release-cli +before_script: +- if [ -d "/srv/userscripts" ]; then cp -R userscripts/* /srv/userscripts ; fi +- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' +- eval $(ssh-agent -s) +- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null +- mkdir -p ~/.ssh +- chmod 700 ~/.ssh +- echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts +- chmod 644 ~/.ssh/known_hosts +- export GRADLE_USER_HOME=$(pwd)/.gradle +- chmod +x ./gradlew - stage: release +cache: + key: ${CI_PROJECT_ID} + paths: + - .gradle/ +build: + stage: build script: - - echo "Release 1" - release: - name: "Release v1" - description: "Created using the release-cli" - tag_name: v1 - ref: $CI_COMMIT_SHA + - echo sdk.dir $ANDROID_HOME > local.properties + - echo mapbox.key $MAPBOX_KEY >> local.properties + - echo mapbox.enabled true >> local.properties + - export TERM=dumb + - export JAVA_OPTS="-XX:+CMSClassUnloadingEnabled -XX:+HeapDumpOnOutOfMemoryError -Xmx4096m" + - | + curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ + --data "{\"tag_name\": \"test-2-tag\", \"name\": \"MicroG\", \"description\": \"No release notes\"}" \ + --header "Content-Type: application/json" \ + --header "JOB-TOKEN: ${CI_JOB_TOKEN}" \ + --request POST \ + "https://gitlab.e.foundation/api/v4/projects/149/releases" + -- GitLab From d056f3cf9d61780582bc4939169cea4d75d72328 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Wed, 14 Oct 2020 07:55:07 +0000 Subject: [PATCH 10/69] Update .gitlab-ci.yml --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e08785411..b869cc91b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -35,7 +35,7 @@ build: curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ --data "{\"tag_name\": \"test-2-tag\", \"name\": \"MicroG\", \"description\": \"No release notes\"}" \ --header "Content-Type: application/json" \ - --header "JOB-TOKEN: ${CI_JOB_TOKEN}" \ + --header "PRIVATE-TOKEN: qXprsTtdG7124sz8a5Ex" \ --request POST \ "https://gitlab.e.foundation/api/v4/projects/149/releases" -- GitLab From a9959a5fc56c8e1e7612cd1c46921cda5fe6214d Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Wed, 14 Oct 2020 09:03:48 +0000 Subject: [PATCH 11/69] Update .gitlab-ci.yml --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b869cc91b..a04669395 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -33,7 +33,7 @@ build: - export JAVA_OPTS="-XX:+CMSClassUnloadingEnabled -XX:+HeapDumpOnOutOfMemoryError -Xmx4096m" - | curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ - --data "{\"tag_name\": \"test-2-tag\", \"name\": \"MicroG\", \"description\": \"No release notes\"}" \ + --data "{\"ref\": \"master\",\"tag_name\": \"test-2-tag\", \"name\": \"MicroG\", \"description\": \"No release notes\"}" \ --header "Content-Type: application/json" \ --header "PRIVATE-TOKEN: qXprsTtdG7124sz8a5Ex" \ --request POST \ -- GitLab From 5d476745fd74a9d7ff1a6c72f32ea681b2945ec7 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Thu, 15 Oct 2020 07:21:07 +0000 Subject: [PATCH 12/69] Update .gitlab-ci.yml --- .gitlab-ci.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a04669395..340896673 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -31,9 +31,13 @@ build: - echo mapbox.enabled true >> local.properties - export TERM=dumb - export JAVA_OPTS="-XX:+CMSClassUnloadingEnabled -XX:+HeapDumpOnOutOfMemoryError -Xmx4096m" - - | + - ./gradlew assemble + artifacts: + paths: + - play-services-core/build/outputs/apk/ + - | curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ - --data "{\"ref\": \"master\",\"tag_name\": \"test-2-tag\", \"name\": \"MicroG\", \"description\": \"No release notes\"}" \ + --data "{\"ref\": \"master\",\"tag_name\": \"test-3-tag\", \"name\": \"MicroG\", \"description\": \"No release notes\",\"assets\": {\"links\": [{\"name\": \"test-3-tag\", \"url\": \"https://gitlab.e.foundation/e/apps/GmsCore/-/tree/master/", \"filepath\": \"play-services-core/build/outputs/apk/release/play-services-core-release-unsigned.apk", \"link_type\":\"other\"}]}}" \ --header "Content-Type: application/json" \ --header "PRIVATE-TOKEN: qXprsTtdG7124sz8a5Ex" \ --request POST \ -- GitLab From 5e15c1d8e6fe95f2cba6e6d10de206e0e62f0536 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Thu, 15 Oct 2020 08:49:03 +0000 Subject: [PATCH 13/69] Update .gitlab-ci.yml --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 340896673..679f2a6d5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -37,7 +37,7 @@ build: - play-services-core/build/outputs/apk/ - | curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ - --data "{\"ref\": \"master\",\"tag_name\": \"test-3-tag\", \"name\": \"MicroG\", \"description\": \"No release notes\",\"assets\": {\"links\": [{\"name\": \"test-3-tag\", \"url\": \"https://gitlab.e.foundation/e/apps/GmsCore/-/tree/master/", \"filepath\": \"play-services-core/build/outputs/apk/release/play-services-core-release-unsigned.apk", \"link_type\":\"other\"}]}}" \ + --data "{\"ref\": \"dev\",\"tag_name\": \"test-3-tag\", \"name\": \"MicroG\", \"description\": \"No release notes\",\"assets\": {\"links\": [{\"name\": \"test-3-tag\", \"url\": \"https://gitlab.e.foundation/e/apps/$CI_PROJECT_TITLE/-/jobs/$CI_JOB_ID/", \"filepath\": \"artifacts/file/play-services-core/build/outputs/apk/release/play-services-core-release-unsigned.apk", \"link_type\":\"other\"}]}}" \ --header "Content-Type: application/json" \ --header "PRIVATE-TOKEN: qXprsTtdG7124sz8a5Ex" \ --request POST \ -- GitLab From 28b9e18e8d9d72ffbe0a7ff11de932d95e0e4184 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Mon, 19 Oct 2020 06:37:35 +0000 Subject: [PATCH 14/69] Update .gitlab-ci.yml --- .gitlab-ci.yml | 60 ++++++++++++++++++++++++++++---------------------- 1 file changed, 34 insertions(+), 26 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 679f2a6d5..a1f99cf7c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,45 +1,53 @@ image: "registry.gitlab.e.foundation:5000/e/apps/docker-android-apps-cicd:latest" stages: -- build + - build + - publish variables: GIT_SUBMODULE_STRATEGY: recursive before_script: -- if [ -d "/srv/userscripts" ]; then cp -R userscripts/* /srv/userscripts ; fi -- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' -- eval $(ssh-agent -s) -- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null -- mkdir -p ~/.ssh -- chmod 700 ~/.ssh -- echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts -- chmod 644 ~/.ssh/known_hosts -- export GRADLE_USER_HOME=$(pwd)/.gradle -- chmod +x ./gradlew + - if [ -d "/srv/userscripts" ]; then cp -R userscripts/* /srv/userscripts ; fi + - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' + - eval $(ssh-agent -s) + - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null + - mkdir -p ~/.ssh + - chmod 700 ~/.ssh + - echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts + - chmod 644 ~/.ssh/known_hosts + - export GRADLE_USER_HOME=$(pwd)/.gradle + - chmod +x ./gradlew cache: key: ${CI_PROJECT_ID} paths: - - .gradle/ + - .gradle/ build: stage: build script: - - echo sdk.dir $ANDROID_HOME > local.properties - - echo mapbox.key $MAPBOX_KEY >> local.properties - - echo mapbox.enabled true >> local.properties - - export TERM=dumb - - export JAVA_OPTS="-XX:+CMSClassUnloadingEnabled -XX:+HeapDumpOnOutOfMemoryError -Xmx4096m" - - ./gradlew assemble + - echo sdk.dir $ANDROID_HOME > local.properties + - echo mapbox.key $MAPBOX_KEY >> local.properties + - echo mapbox.enabled true >> local.properties + - export TERM=dumb + - export JAVA_OPTS="-XX:+CMSClassUnloadingEnabled -XX:+HeapDumpOnOutOfMemoryError -Xmx4096m" + - ./gradlew assemble artifacts: paths: - - play-services-core/build/outputs/apk/ + - play-services-core/build/outputs/apk/ + +publish: + stage: publish + only: + - tags # Run only on tags + except: + - branches # Do not run this job on a branch + script: - | - curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ - --data "{\"ref\": \"dev\",\"tag_name\": \"test-3-tag\", \"name\": \"MicroG\", \"description\": \"No release notes\",\"assets\": {\"links\": [{\"name\": \"test-3-tag\", \"url\": \"https://gitlab.e.foundation/e/apps/$CI_PROJECT_TITLE/-/jobs/$CI_JOB_ID/", \"filepath\": \"artifacts/file/play-services-core/build/outputs/apk/release/play-services-core-release-unsigned.apk", \"link_type\":\"other\"}]}}" \ - --header "Content-Type: application/json" \ - --header "PRIVATE-TOKEN: qXprsTtdG7124sz8a5Ex" \ - --request POST \ - "https://gitlab.e.foundation/api/v4/projects/149/releases" - + curl \ + --data "{\"ref\": \"$CI_COMMIT_SHA\",\"tag_name\": \"$CI_COMMIT_TAG\", \"name\": \"$CI_COMMIT_TAG\", \"description\": \"$CI_COMMIT_MESSAGE\",\"assets\": {\"links\": [{\"name\": \"test-3-tag\", \"url\": \"https://gitlab.e.foundation/e/apps/$CI_PROJECT_TITLE/-/jobs/$CI_JOB_ID/", \"filepath\": \"artifacts/file/play-services-core/build/outputs/apk", \"link_type\":\"other\"}]}}" \ + --header "Content-Type: application/json" \ + --header "PRIVATE-TOKEN: SdnrNQPUfEb9No6wg6tY" \ + --request POST \ + "https://gitlab.e.foundation/api/v4/projects/149/releases" -- GitLab From feec4c3f5e652d3d215a8177468ce697221b1505 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Mon, 19 Oct 2020 13:26:40 +0530 Subject: [PATCH 15/69] # Using job id instead of private token # Use Artifacts path as asset link in release api # Separate job for build and publish # Run publish job only when tag is pushed --- .gitlab-ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a1f99cf7c..708f22ad0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -46,8 +46,8 @@ publish: script: - | curl \ - --data "{\"ref\": \"$CI_COMMIT_SHA\",\"tag_name\": \"$CI_COMMIT_TAG\", \"name\": \"$CI_COMMIT_TAG\", \"description\": \"$CI_COMMIT_MESSAGE\",\"assets\": {\"links\": [{\"name\": \"test-3-tag\", \"url\": \"https://gitlab.e.foundation/e/apps/$CI_PROJECT_TITLE/-/jobs/$CI_JOB_ID/", \"filepath\": \"artifacts/file/play-services-core/build/outputs/apk", \"link_type\":\"other\"}]}}" \ + --data "{\"ref\": \"$CI_COMMIT_SHA\",\"tag_name\": \"$CI_COMMIT_TAG\", \"name\": \"$CI_COMMIT_TAG\", \"description\": \"$CI_COMMIT_MESSAGE\",\"assets\": {\"links\": [{\"name\": \"test-3-tag\", \"url\": \"$CI_PROJECT_URL/", \"filepath\": \"-/jobs/artifacts/$CI_COMMIT_TAG/browse?job=build", \"link_type\":\"other\"}]}}" \ --header "Content-Type: application/json" \ - --header "PRIVATE-TOKEN: SdnrNQPUfEb9No6wg6tY" \ + --header "JOB-TOKEN: $CI_JOB_ID" \ --request POST \ - "https://gitlab.e.foundation/api/v4/projects/149/releases" + "https://gitlab.e.foundation/api/v4/projects/${CI_PROJECT_ID}/releases" -- GitLab From 175f1cd1e76bed990e010cc85d765f988a5b2fda Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Mon, 19 Oct 2020 14:58:27 +0530 Subject: [PATCH 16/69] # Update gitlab ci --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 708f22ad0..296f220e7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -45,8 +45,8 @@ publish: - branches # Do not run this job on a branch script: - | - curl \ - --data "{\"ref\": \"$CI_COMMIT_SHA\",\"tag_name\": \"$CI_COMMIT_TAG\", \"name\": \"$CI_COMMIT_TAG\", \"description\": \"$CI_COMMIT_MESSAGE\",\"assets\": {\"links\": [{\"name\": \"test-3-tag\", \"url\": \"$CI_PROJECT_URL/", \"filepath\": \"-/jobs/artifacts/$CI_COMMIT_TAG/browse?job=build", \"link_type\":\"other\"}]}}" \ + curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ + --data "{\"ref\": \"$CI_COMMIT_SHA\",\"tag_name\": \"$CI_COMMIT_TAG\", \"name\": \"$CI_COMMIT_TAG\", \"description\": \"$CI_COMMIT_MESSAGE\",\"assets\": {\"links\": [{\"name\": \"test-3-tag\", \"url\": \"https://gitlab.e.foundation/api/v4/projects/${CI_PROJECT_ID}/", \"filepath\": \"jobs/artifacts/$CI_COMMIT_TAG/download?job=build", \"link_type\":\"other\"}]}}" \ --header "Content-Type: application/json" \ --header "JOB-TOKEN: $CI_JOB_ID" \ --request POST \ -- GitLab From 3b4c90cced6778fae65b03d81a95d4ad6ebbb285 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Mon, 19 Oct 2020 16:39:59 +0530 Subject: [PATCH 17/69] # Update gitlab ci --- .gitlab-ci.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 296f220e7..52a1e42ed 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -39,6 +39,8 @@ build: publish: stage: publish + variables: + COMMIT_TAG : $CI_COMMIT_TAG only: - tags # Run only on tags except: @@ -46,8 +48,10 @@ publish: script: - | curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ - --data "{\"ref\": \"$CI_COMMIT_SHA\",\"tag_name\": \"$CI_COMMIT_TAG\", \"name\": \"$CI_COMMIT_TAG\", \"description\": \"$CI_COMMIT_MESSAGE\",\"assets\": {\"links\": [{\"name\": \"test-3-tag\", \"url\": \"https://gitlab.e.foundation/api/v4/projects/${CI_PROJECT_ID}/", \"filepath\": \"jobs/artifacts/$CI_COMMIT_TAG/download?job=build", \"link_type\":\"other\"}]}}" \ + --data '{"ref": "$CI_COMMIT_SHA","tag_name": "$COMMIT_TAG", + "name": "$COMMIT_TAG", "description": "$CI_COMMIT_MESSAGE", + "assets": {"links": [{"name": "$COMMIT_TAG", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$COMMIT_TAG/download?job=build", + "filepath": "jobs/artifacts/$CI_COMMIT_TAG/download?job=build", "link_type":\"other"}]}}' \ --header "Content-Type: application/json" \ --header "JOB-TOKEN: $CI_JOB_ID" \ - --request POST \ - "https://gitlab.e.foundation/api/v4/projects/${CI_PROJECT_ID}/releases" + --request POST "https://gitlab.e.foundation/api/v4/projects/${CI_PROJECT_ID}/releases" -- GitLab From 7d0e7c5c0191c875707ebd286bbc5312b6ddc169 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Mon, 19 Oct 2020 16:48:06 +0530 Subject: [PATCH 18/69] # Update gitlab ci --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 52a1e42ed..a547542f5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -53,5 +53,5 @@ publish: "assets": {"links": [{"name": "$COMMIT_TAG", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$COMMIT_TAG/download?job=build", "filepath": "jobs/artifacts/$CI_COMMIT_TAG/download?job=build", "link_type":\"other"}]}}' \ --header "Content-Type: application/json" \ - --header "JOB-TOKEN: $CI_JOB_ID" \ + --header "PRIVATE-TOKEN: dPh6x22D5jK4EJmry1rx" \ --request POST "https://gitlab.e.foundation/api/v4/projects/${CI_PROJECT_ID}/releases" -- GitLab From 8e03a63208d91121cc9652dbaa29d0bb2e13e526 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Mon, 19 Oct 2020 16:57:46 +0530 Subject: [PATCH 19/69] # Update gitlab ci --- .gitlab-ci.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a547542f5..b839a66ef 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -42,16 +42,15 @@ publish: variables: COMMIT_TAG : $CI_COMMIT_TAG only: - - tags # Run only on tags + - tags # Run only on tags except: - - branches # Do not run this job on a branch + - branches # Do not run this job on a branch script: - | curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ --data '{"ref": "$CI_COMMIT_SHA","tag_name": "$COMMIT_TAG", "name": "$COMMIT_TAG", "description": "$CI_COMMIT_MESSAGE", - "assets": {"links": [{"name": "$COMMIT_TAG", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$COMMIT_TAG/download?job=build", - "filepath": "jobs/artifacts/$CI_COMMIT_TAG/download?job=build", "link_type":\"other"}]}}' \ + "assets": {"links": [{"name": "$COMMIT_TAG", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$COMMIT_TAG/download?job=build","filepath": "play-services-core/build/outputs/apk/", "link_type":"other"}]}}' \ --header "Content-Type: application/json" \ --header "PRIVATE-TOKEN: dPh6x22D5jK4EJmry1rx" \ --request POST "https://gitlab.e.foundation/api/v4/projects/${CI_PROJECT_ID}/releases" -- GitLab From 04f58660dfb3ad10ead7ffb9c77d10cbbb00f773 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Mon, 19 Oct 2020 17:11:13 +0530 Subject: [PATCH 20/69] # Update gitlab ci --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b839a66ef..46ddf07c9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -52,5 +52,5 @@ publish: "name": "$COMMIT_TAG", "description": "$CI_COMMIT_MESSAGE", "assets": {"links": [{"name": "$COMMIT_TAG", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$COMMIT_TAG/download?job=build","filepath": "play-services-core/build/outputs/apk/", "link_type":"other"}]}}' \ --header "Content-Type: application/json" \ - --header "PRIVATE-TOKEN: dPh6x22D5jK4EJmry1rx" \ + --header "JOB-TOKEN: $CI_JOB_ID" \ --request POST "https://gitlab.e.foundation/api/v4/projects/${CI_PROJECT_ID}/releases" -- GitLab From bd045b9131b391c6eda5ef2a60188b71bb4d0c61 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Mon, 19 Oct 2020 17:18:44 +0530 Subject: [PATCH 21/69] # Update gitlab ci --- .gitlab-ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 46ddf07c9..317faae7e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -46,11 +46,15 @@ publish: except: - branches # Do not run this job on a branch script: + - echo $CI_COMMIT_SHA + - echo $COMMIT_TAG + - echo $CI_COMMIT_MESSAGE + - echo https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$COMMIT_TAG/download?job=build - | curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ --data '{"ref": "$CI_COMMIT_SHA","tag_name": "$COMMIT_TAG", "name": "$COMMIT_TAG", "description": "$CI_COMMIT_MESSAGE", "assets": {"links": [{"name": "$COMMIT_TAG", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$COMMIT_TAG/download?job=build","filepath": "play-services-core/build/outputs/apk/", "link_type":"other"}]}}' \ --header "Content-Type: application/json" \ - --header "JOB-TOKEN: $CI_JOB_ID" \ + --header "PRIVATE-TOKEN: dPh6x22D5jK4EJmry1rx" \ --request POST "https://gitlab.e.foundation/api/v4/projects/${CI_PROJECT_ID}/releases" -- GitLab From 20f996c9128723a1943fce598ad5bd87cadeb087 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Mon, 19 Oct 2020 17:27:53 +0530 Subject: [PATCH 22/69] # Update gitlab ci --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 317faae7e..d865017e3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -51,9 +51,9 @@ publish: - echo $CI_COMMIT_MESSAGE - echo https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$COMMIT_TAG/download?job=build - | - curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ + curl --trace --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ --data '{"ref": "$CI_COMMIT_SHA","tag_name": "$COMMIT_TAG", - "name": "$COMMIT_TAG", "description": "$CI_COMMIT_MESSAGE", + "name": "$COMMIT_TAG", "description": "This is a test Release", "assets": {"links": [{"name": "$COMMIT_TAG", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$COMMIT_TAG/download?job=build","filepath": "play-services-core/build/outputs/apk/", "link_type":"other"}]}}' \ --header "Content-Type: application/json" \ --header "PRIVATE-TOKEN: dPh6x22D5jK4EJmry1rx" \ -- GitLab From 34fb8cb3d3d36236de0dc3c7dda81c20669957d2 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Mon, 19 Oct 2020 17:28:04 +0530 Subject: [PATCH 23/69] # Update gitlab ci --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d865017e3..514dc865a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -51,7 +51,7 @@ publish: - echo $CI_COMMIT_MESSAGE - echo https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$COMMIT_TAG/download?job=build - | - curl --trace --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ + curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ --data '{"ref": "$CI_COMMIT_SHA","tag_name": "$COMMIT_TAG", "name": "$COMMIT_TAG", "description": "This is a test Release", "assets": {"links": [{"name": "$COMMIT_TAG", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$COMMIT_TAG/download?job=build","filepath": "play-services-core/build/outputs/apk/", "link_type":"other"}]}}' \ -- GitLab From 80c88f409bf3f8d1e762c323b835d75aca95335b Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Mon, 19 Oct 2020 17:37:13 +0530 Subject: [PATCH 24/69] # Update gitlab ci --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 514dc865a..05edb6eec 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -51,9 +51,9 @@ publish: - echo $CI_COMMIT_MESSAGE - echo https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$COMMIT_TAG/download?job=build - | - curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ + curl --fail --output --trace "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ --data '{"ref": "$CI_COMMIT_SHA","tag_name": "$COMMIT_TAG", - "name": "$COMMIT_TAG", "description": "This is a test Release", + "name": "$COMMIT_TAG", "description": "$CI_COMMIT_MESSAGE", "assets": {"links": [{"name": "$COMMIT_TAG", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$COMMIT_TAG/download?job=build","filepath": "play-services-core/build/outputs/apk/", "link_type":"other"}]}}' \ --header "Content-Type: application/json" \ --header "PRIVATE-TOKEN: dPh6x22D5jK4EJmry1rx" \ -- GitLab From 0b509af36cd38839dedcd9ae4bf120e780b0b5c2 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Mon, 19 Oct 2020 17:43:36 +0530 Subject: [PATCH 25/69] # Update gitlab ci --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 05edb6eec..4359e5874 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -54,7 +54,7 @@ publish: curl --fail --output --trace "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ --data '{"ref": "$CI_COMMIT_SHA","tag_name": "$COMMIT_TAG", "name": "$COMMIT_TAG", "description": "$CI_COMMIT_MESSAGE", - "assets": {"links": [{"name": "$COMMIT_TAG", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$COMMIT_TAG/download?job=build","filepath": "play-services-core/build/outputs/apk/", "link_type":"other"}]}}' \ + "assets": {"links": [{"name": "$COMMIT_TAG", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/v28.10.2020/download?job=build","filepath": "play-services-core/build/outputs/apk/", "link_type":"other"}]}}' \ --header "Content-Type: application/json" \ --header "PRIVATE-TOKEN: dPh6x22D5jK4EJmry1rx" \ --request POST "https://gitlab.e.foundation/api/v4/projects/${CI_PROJECT_ID}/releases" -- GitLab From 01d1cce951fe704d5ab7e74a3c3813e132f8238a Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Mon, 19 Oct 2020 17:55:01 +0530 Subject: [PATCH 26/69] # Update gitlab ci --- .gitlab-ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4359e5874..73ed83ee6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -47,14 +47,14 @@ publish: - branches # Do not run this job on a branch script: - echo $CI_COMMIT_SHA - - echo $COMMIT_TAG + - echo $CI_COMMIT_TAG - echo $CI_COMMIT_MESSAGE - echo https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$COMMIT_TAG/download?job=build - | curl --fail --output --trace "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ - --data '{"ref": "$CI_COMMIT_SHA","tag_name": "$COMMIT_TAG", - "name": "$COMMIT_TAG", "description": "$CI_COMMIT_MESSAGE", - "assets": {"links": [{"name": "$COMMIT_TAG", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/v28.10.2020/download?job=build","filepath": "play-services-core/build/outputs/apk/", "link_type":"other"}]}}' \ - --header "Content-Type: application/json" \ + --data '{"ref": "$CI_COMMIT_SHA","tag_name": "$CI_COMMIT_TAG", + "name": "$CI_COMMIT_TAG", "description": "$CI_COMMIT_MESSAGE", + "assets": {"links": [{"name": "$CI_COMMIT_TAG", "url": "https://gitlab.e.foundation/api/v4","filepath": "/projects/149/jobs/artifacts/$CI_COMMIT_TAG/download?job=build", "link_type":"other"}]}}' \ + --header 'Content-Type: application/json' \ --header "PRIVATE-TOKEN: dPh6x22D5jK4EJmry1rx" \ - --request POST "https://gitlab.e.foundation/api/v4/projects/${CI_PROJECT_ID}/releases" + --request POST https://gitlab.e.foundation/api/v4/projects/149/releases -- GitLab From 00a799adb9e73cef11fe20c9360e9bed53eeb171 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Mon, 19 Oct 2020 18:04:55 +0530 Subject: [PATCH 27/69] # Update gitlab ci --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 73ed83ee6..2b815f60b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -52,9 +52,9 @@ publish: - echo https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$COMMIT_TAG/download?job=build - | curl --fail --output --trace "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ - --data '{"ref": "$CI_COMMIT_SHA","tag_name": "$CI_COMMIT_TAG", + --data '{"ref": "$CI_COMMIT_TAG","tag_name": "$CI_COMMIT_TAG", "name": "$CI_COMMIT_TAG", "description": "$CI_COMMIT_MESSAGE", - "assets": {"links": [{"name": "$CI_COMMIT_TAG", "url": "https://gitlab.e.foundation/api/v4","filepath": "/projects/149/jobs/artifacts/$CI_COMMIT_TAG/download?job=build", "link_type":"other"}]}}' \ + "assets": {"links": [{"name": "$CI_COMMIT_TAG", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$CI_COMMIT_TAG/download?job=build","filepath": "/projects/149/jobs/artifacts/$CI_COMMIT_TAG/download?job=build", "link_type":"other"}]}}' \ --header 'Content-Type: application/json' \ --header "PRIVATE-TOKEN: dPh6x22D5jK4EJmry1rx" \ --request POST https://gitlab.e.foundation/api/v4/projects/149/releases -- GitLab From 46a65e5e576d6baa2a6e14baf9185cdddacf456e Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Mon, 19 Oct 2020 18:11:47 +0530 Subject: [PATCH 28/69] # Update gitlab ci --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2b815f60b..ee7c0a3fa 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -54,7 +54,7 @@ publish: curl --fail --output --trace "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ --data '{"ref": "$CI_COMMIT_TAG","tag_name": "$CI_COMMIT_TAG", "name": "$CI_COMMIT_TAG", "description": "$CI_COMMIT_MESSAGE", - "assets": {"links": [{"name": "$CI_COMMIT_TAG", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$CI_COMMIT_TAG/download?job=build","filepath": "/projects/149/jobs/artifacts/$CI_COMMIT_TAG/download?job=build", "link_type":"other"}]}}' \ + "assets": {"links": [{"name": "$CI_COMMIT_TAG", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$CI_COMMIT_TAG/download?job=build","filepath": "play-services-core/build/outputs/apk/", "link_type":"other"}]}}' \ --header 'Content-Type: application/json' \ --header "PRIVATE-TOKEN: dPh6x22D5jK4EJmry1rx" \ --request POST https://gitlab.e.foundation/api/v4/projects/149/releases -- GitLab From bcf0cac98d2328d83a832df2aceb73817f7bc8cc Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Tue, 20 Oct 2020 11:29:22 +0530 Subject: [PATCH 29/69] # Update gitlab ci --- .gitlab-ci.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ee7c0a3fa..decb88e93 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -49,12 +49,10 @@ publish: - echo $CI_COMMIT_SHA - echo $CI_COMMIT_TAG - echo $CI_COMMIT_MESSAGE - - echo https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$COMMIT_TAG/download?job=build - | curl --fail --output --trace "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ --data '{"ref": "$CI_COMMIT_TAG","tag_name": "$CI_COMMIT_TAG", - "name": "$CI_COMMIT_TAG", "description": "$CI_COMMIT_MESSAGE", - "assets": {"links": [{"name": "$CI_COMMIT_TAG", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$CI_COMMIT_TAG/download?job=build","filepath": "play-services-core/build/outputs/apk/", "link_type":"other"}]}}' \ + "name": "$CI_COMMIT_TAG", "description": "$CI_COMMIT_MESSAGE"}' \ --header 'Content-Type: application/json' \ - --header "PRIVATE-TOKEN: dPh6x22D5jK4EJmry1rx" \ - --request POST https://gitlab.e.foundation/api/v4/projects/149/releases + --header "JOB-TOKEN: $CI_JOB_TOKEN" \ + --request POST https://gitlab.e.foundation/api/v4/projects/${CI_PROJECT_ID}/releases -- GitLab From 6cdc0e7dd4d66037f0eae2dc2a79a01bea964f26 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Tue, 20 Oct 2020 11:35:27 +0530 Subject: [PATCH 30/69] # Update gitlab ci --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index decb88e93..8b48d03a5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -54,5 +54,5 @@ publish: --data '{"ref": "$CI_COMMIT_TAG","tag_name": "$CI_COMMIT_TAG", "name": "$CI_COMMIT_TAG", "description": "$CI_COMMIT_MESSAGE"}' \ --header 'Content-Type: application/json' \ - --header "JOB-TOKEN: $CI_JOB_TOKEN" \ + --header "PRIVATE-TOKEN: dPh6x22D5jK4EJmry1rx" \ --request POST https://gitlab.e.foundation/api/v4/projects/${CI_PROJECT_ID}/releases -- GitLab From 2e0609b94157701480ffa114f05dfeee2a86fb2f Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Tue, 20 Oct 2020 11:53:38 +0530 Subject: [PATCH 31/69] # Update gitlab ci --- .gitlab-ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8b48d03a5..956c28378 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -50,9 +50,9 @@ publish: - echo $CI_COMMIT_TAG - echo $CI_COMMIT_MESSAGE - | - curl --fail --output --trace "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ - --data '{"ref": "$CI_COMMIT_TAG","tag_name": "$CI_COMMIT_TAG", - "name": "$CI_COMMIT_TAG", "description": "$CI_COMMIT_MESSAGE"}' \ - --header 'Content-Type: application/json' \ - --header "PRIVATE-TOKEN: dPh6x22D5jK4EJmry1rx" \ - --request POST https://gitlab.e.foundation/api/v4/projects/${CI_PROJECT_ID}/releases + curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ + --data "{\"ref\": \"$CI_COMMIT_SHA\",\"tag_name\": \"$CI_COMMIT_TAG\", \"name\": \"MicroG\", \"description\": \"$CI_COMMIT_MESSAGE\"}" \ + --header "Content-Type: application/json" \ + --header "JOB-TOKEN: $CI_JOB_ID" \ + --request POST \ + "https://gitlab.e.foundation/api/v4/projects/${CI_PROJECT_ID}/releases" -- GitLab From ad5372e8fe1289a7af075c55b1c751a682b355ad Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Tue, 20 Oct 2020 12:03:09 +0530 Subject: [PATCH 32/69] # Update gitlab ci --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 956c28378..7de483370 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -53,6 +53,6 @@ publish: curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ --data "{\"ref\": \"$CI_COMMIT_SHA\",\"tag_name\": \"$CI_COMMIT_TAG\", \"name\": \"MicroG\", \"description\": \"$CI_COMMIT_MESSAGE\"}" \ --header "Content-Type: application/json" \ - --header "JOB-TOKEN: $CI_JOB_ID" \ + --header "PRIVATE-TOKEN: SdnrNQPUfEb9No6wg6tY" \ --request POST \ "https://gitlab.e.foundation/api/v4/projects/${CI_PROJECT_ID}/releases" -- GitLab From 17a051622a53f377fc7714560eae6ac53229cd98 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Tue, 20 Oct 2020 12:12:46 +0530 Subject: [PATCH 33/69] # Update gitlab ci --- .gitlab-ci.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7de483370..2cacdef38 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -39,20 +39,15 @@ build: publish: stage: publish - variables: - COMMIT_TAG : $CI_COMMIT_TAG only: - - tags # Run only on tags + - tags except: - - branches # Do not run this job on a branch + - branches # Do not run this job when a tag is created manually script: - - echo $CI_COMMIT_SHA - - echo $CI_COMMIT_TAG - - echo $CI_COMMIT_MESSAGE - | curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ - --data "{\"ref\": \"$CI_COMMIT_SHA\",\"tag_name\": \"$CI_COMMIT_TAG\", \"name\": \"MicroG\", \"description\": \"$CI_COMMIT_MESSAGE\"}" \ + --data "{\"ref\": \"$CI_COMMIT_SHA\",\"tag_name\": \"$CI_COMMIT_TAG\", \"name\": \"$CI_COMMIT_TAG\", \"description\": \"No release notes\"}" \ --header "Content-Type: application/json" \ --header "PRIVATE-TOKEN: SdnrNQPUfEb9No6wg6tY" \ --request POST \ - "https://gitlab.e.foundation/api/v4/projects/${CI_PROJECT_ID}/releases" + "https://gitlab.e.foundation/api/v4/projects/149/releases" -- GitLab From b5232bafcfd60c12be95a81f3fb4724817c93e53 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Tue, 20 Oct 2020 12:20:18 +0530 Subject: [PATCH 34/69] # Update access token --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2cacdef38..14a356c93 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -48,6 +48,6 @@ publish: curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ --data "{\"ref\": \"$CI_COMMIT_SHA\",\"tag_name\": \"$CI_COMMIT_TAG\", \"name\": \"$CI_COMMIT_TAG\", \"description\": \"No release notes\"}" \ --header "Content-Type: application/json" \ - --header "PRIVATE-TOKEN: SdnrNQPUfEb9No6wg6tY" \ + --header "PRIVATE-TOKEN: PiVjuc3jbF1rMzKk4AyY" \ --request POST \ "https://gitlab.e.foundation/api/v4/projects/149/releases" -- GitLab From ea021a3227aa5f07b9506f6f94ccb15c1de66f22 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Tue, 20 Oct 2020 12:32:56 +0530 Subject: [PATCH 35/69] # Update access token --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 14a356c93..015d32b63 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -46,7 +46,7 @@ publish: script: - | curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ - --data "{\"ref\": \"$CI_COMMIT_SHA\",\"tag_name\": \"$CI_COMMIT_TAG\", \"name\": \"$CI_COMMIT_TAG\", \"description\": \"No release notes\"}" \ + --data "{\"ref\": \"$CI_COMMIT_SHA\",\"tag_name\": \"$CI_COMMIT_TAG\", \"name\": \"$CI_COMMIT_TAG\", \"description\": \"$CI_COMMIT_MESSAGE\"}" \ --header "Content-Type: application/json" \ --header "PRIVATE-TOKEN: PiVjuc3jbF1rMzKk4AyY" \ --request POST \ -- GitLab From f7ac47d5451f9437d539d5c471250b5a629bdaa8 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Wed, 21 Oct 2020 17:37:01 +0530 Subject: [PATCH 36/69] # Signing Apk --- .gitlab-ci.yml | 2 +- play-services-core/build.gradle | 12 ++++++++++++ play-services-core/platform.keystore | Bin 0 -> 2899 bytes 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 play-services-core/platform.keystore diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 015d32b63..b2cea8676 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -32,7 +32,7 @@ build: - echo mapbox.enabled true >> local.properties - export TERM=dumb - export JAVA_OPTS="-XX:+CMSClassUnloadingEnabled -XX:+HeapDumpOnOutOfMemoryError -Xmx4096m" - - ./gradlew assemble + - ./gradlew assembleRelease artifacts: paths: - play-services-core/build/outputs/apk/ diff --git a/play-services-core/build.gradle b/play-services-core/build.gradle index 0a16720d9..45a7b8863 100644 --- a/play-services-core/build.gradle +++ b/play-services-core/build.gradle @@ -111,13 +111,25 @@ android { disable 'MissingTranslation', 'InvalidPackage', 'BatteryLife', 'ImpliedQuantity', 'MissingQuantity', 'InvalidWakeLockTag' } + signingConfigs { + release { + storeFile file(".platform.keystore") + storePassword 'password' + keyAlias 'platform' + keyPassword 'password' + } + } + buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + signingConfig signingConfigs.release } } + + compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 diff --git a/play-services-core/platform.keystore b/play-services-core/platform.keystore new file mode 100644 index 0000000000000000000000000000000000000000..312862ed9dca0f7782330588d88805b4896285d6 GIT binary patch literal 2899 zcmXqL;`V1^WHxBx=3wL0YV&CO&dbQoxS)yaCrcC8SA!<5j|NSwxhPVsaV$-&Q3g${ zVFpdCL2TSmT|8WjObeP=ej7Bgd^gZ!rHSRl`}C_D-6X0{xkN6r(wS&2sM0N~Eis!x%+FK$33ub=ile#wS+~3- zjG|9&l<^5YfBuB|%2#RGHP5+yWHw1iM5eYFw^}Hw$MUV2+tRWqLh00}Shbx8^W7~k zEz<8~Umsv?ty=VG^5;_#cJ-DeH(xESD0n4dl^2^A8S-M~{N=1|uDJ=!vnAXg81Pxw zbu*`J{l3nt&N-+g^g@&3q?#>{7RqmR=hjuxJ{#^TanIpzvYYO@_Bl;U?mqr9Gycm? z-HDPbLMrnP&fVnHaWN;)_R6i0#qBJ~r7Emvd6X?<-W}k&;a*>KCh5c7TUN3AS?^su zc$NLPR6x+u2WuAAPA=P8_4HZl-q_D)Po$}p=(3kwxA-C;VX@X^HK*nN;QrOT7@xwqw*f0(5m z)0S-}obV<*Y47#Arp3+^B`W+ACh@af(Yx7qR;E1Y(gK!KFDjnzx>K>ba8uRnJptai z5(SDEY#onmxS83psM0RCbFakWzOO!u_uYIhvHNM}aY=_}2gNhRTPB=2+N2P(?YiGy zGxINI88WR`rT=uu9a!bJAjR_ZCH9HIrL*3*`Db-@ew1GG{6qcpsvnCN&$-B(Cl@1s z(d6om|7!(ZS!6p{m;2n5Ppdy<8Wa@sPwCX6U?|vsGh7xwFKxI(*5a-_K~mi>F)O7R1kDJQ5yyFD7G!x_Vy3 zy_ZJOauM-g7&Lj;{rz^Sr>I`I>n+2dBV{L!U6|mdJ>(MV~C5rkMDXCFAG$<3jD5wnoaFlvU}up}5VqT{2&&#qaRD?=rX4 zrx%}F___X7>G?T9MyK_raf|w{h*%I-`aR&mk+k`CB8zz+tyao-#=RgiyHTqyX72o5 zt3^DTDxIYHf9V`MQ6r=nxt>|+aqisR<+4T`s*_(nnt6T6ja9*i3?1@+PE&j&^ZrTd z>a2gIr{~GB-fgX2vOdn9^~dDtnfJ~d?X=r{Y1)GKPdP3-~gIb1S6UDuy35AJmrJ#Q%IB9@r(Q<^KZ^r5ncr|T*IWj)hwSFYF| zB45dI$XjT}HsPk2uPa`+a@_q?;T88q>vp2vtf!4L6E<@clt^*kUsZJR_0x!y{HTu} zaXxAim#xH_LoFwlY=6{bk-2eR#Kje<*Pb&8J-Obv-7x&x3&$g=k`De+m(4^!t zZ9?-Wm&ZkKwJtcsug%CluU_t%D)h_z$AKeT1H8>OS4`wuF5;rUgXQ6r?k#l;6_H`f zd6J(RChZen-@He#=?Py!o$V&=ohRD<^z!SScz@SbQ{pUqH`-XK4hNx^Ts?wKkxnh#mQ0gro0I>?{m<2lroQD7KW!aS`AfqLH^z8l_n&u8Qm;OZwlxnG`FBh?t_$8IOGwgisI|u&rCzBPkSes7; zI~-@)mb*MvxK`xO(vtfji@j8mUn=af?Xf;kP^%ac*w=IXj_S+3&pz#)yQlf<+3vpM|73F-b1zS}o>V)dI^wB$`I_}UU#=d$%JKEJ z{?a9$%RdEPjQ8AlaQWKQ?F(5PcQ`E#Dsyh;keyYx=$T01)(Ufnizg2+Ix*$AVL?xI z*R3O>TVK8F+#gs{|0nKW*>4eJkBzep(hPQRg)eCGm63QSd{E12tE&;?v-xwIUn(Si zu@YgPRVz2u`wq+TB{RB~^8A^h}-#n)ybPF5l3WWROW{s z%U8T3ynT}2y~$EDT$PkN_@DQLGlZP~>Rj{8T9Wl4Z~hrW8YmAZMW^*#OA;oMV}f47oC0IVqlwo>JFQiUU>gH`DXEg!xyIH2dEwDpK<*2 z-8Iry3Ec~L*uR|%($9&?3GU}p>$&yt?Cld~6_NWAF09G?RUyM9yx?T^x9c}nmmg96 zvz}oChjifzF_k$lFP6{Mddk?$YH#|A?|PDqL|?J=BVpE>XUC!q3M)3=h)cRE(K`P^ zoO#J|E`xN<;*Xrs8yE623o4c{YHgCf`+ESeJdWs;?`x6fLY zb7;Y$tMZLW*G}#heXf5qXNCFWPYgSsMhH~DoY(sBO2$cfyI;;??`oXZHLUonq}pGe zn%KNFbCHCodfhvbp!dCJrPI_+o-3BjbN}IchU4hFi(xfRtorA}ejCtUu*uC2|f8D|N5$?OF!%yeZ7r%nda?`(Uh9= z%YI1)*YV}WmsWN5ISB|?E^zeBj_(hj=%4 zG{{D)2li;H>)YPg=B9Y#>!TTetKWW-RQi1^h3r@4HM%?kLxGU~W$l)IXG-S&{we#}N`QCv0(nj6-HY6> zUHe$$?2;<})73n-LbIc$&&c4>J&o#ge;)1i51p+7xC?ZarJZrUwsP)lYw53B0}Sj8 z6b(4pShe|>nWR`5SVXdt`?o%7C5GEYCO&HKKOMdVKFSMjb+&8_u2EFNf@ QoG(}{`hF=BGh^EV0DzrD82|tP literal 0 HcmV?d00001 -- GitLab From df8f922f8b3e6a9b06771a9dce1788ec4b3235b5 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Wed, 21 Oct 2020 17:41:21 +0530 Subject: [PATCH 37/69] # Signing Apk --- play-services-core/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/play-services-core/build.gradle b/play-services-core/build.gradle index 45a7b8863..1681e585b 100644 --- a/play-services-core/build.gradle +++ b/play-services-core/build.gradle @@ -113,7 +113,7 @@ android { signingConfigs { release { - storeFile file(".platform.keystore") + storeFile file("platform.keystore") storePassword 'password' keyAlias 'platform' keyPassword 'password' -- GitLab From 92a5b30de6b66534a7d9c452f47c0b887eaf23cb Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Thu, 22 Oct 2020 10:48:45 +0530 Subject: [PATCH 38/69] # Publish signed apk in release page --- .gitlab-ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b2cea8676..66babfbbb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -42,11 +42,14 @@ publish: only: - tags except: - - branches # Do not run this job when a tag is created manually + - branches # Do not run this job when a tag is created manually script: - | curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ - --data "{\"ref\": \"$CI_COMMIT_SHA\",\"tag_name\": \"$CI_COMMIT_TAG\", \"name\": \"$CI_COMMIT_TAG\", \"description\": \"$CI_COMMIT_MESSAGE\"}" \ + --data "{\"ref\": \"$CI_COMMIT_SHA\",\"tag_name\": \"$CI_COMMIT_TAG\", + \"name\": \"$CI_COMMIT_TAG\", \"description\": \"$CI_COMMIT_MESSAGE\", + "assets\": {"links":[{"name": "$CI_COMMIT_TAG", "url": "https://gitlab.e.foundation/api/v4/projects/${CI_PROJECT_ID}/jobs/artifacts/v20.10.2020/raw/play-services-core/build/outputs/apk/release/play-services-core-release-unsigned.apk?job=build", + \"filepath": "play-services-core/build/outputs/apk/", "link_type":"other"}]}}" \ --header "Content-Type: application/json" \ --header "PRIVATE-TOKEN: PiVjuc3jbF1rMzKk4AyY" \ --request POST \ -- GitLab From 95dceb11b79951c15ee2bb11d7e39f92c4ab55ad Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Thu, 22 Oct 2020 11:17:56 +0530 Subject: [PATCH 39/69] # Publish signed apk in release page --- .gitlab-ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 66babfbbb..bebf5f478 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -46,10 +46,10 @@ publish: script: - | curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ - --data "{\"ref\": \"$CI_COMMIT_SHA\",\"tag_name\": \"$CI_COMMIT_TAG\", - \"name\": \"$CI_COMMIT_TAG\", \"description\": \"$CI_COMMIT_MESSAGE\", - "assets\": {"links":[{"name": "$CI_COMMIT_TAG", "url": "https://gitlab.e.foundation/api/v4/projects/${CI_PROJECT_ID}/jobs/artifacts/v20.10.2020/raw/play-services-core/build/outputs/apk/release/play-services-core-release-unsigned.apk?job=build", - \"filepath": "play-services-core/build/outputs/apk/", "link_type":"other"}]}}" \ + --data '{"ref": "$CI_COMMIT_SHA","tag_name": "$CI_COMMIT_TAG",\ + "name": "$CI_COMMIT_TAG", "description": "$CI_COMMIT_MESSAGE"\, + "assets": {"links":[{"name": "$CI_COMMIT_TAG", "url": "https://gitlab.e.foundation/api/v4/projects/$CI_PROJECT_ID/jobs/artifacts/$CI_COMMIT_TAG/raw/play-services-core/build/outputs/apk/release/play-services-core-release-unsigned.apk?job=build",\ + "filepath": "play-services-core/build/outputs/apk/", "link_type":"other"}]}}' --header "Content-Type: application/json" \ --header "PRIVATE-TOKEN: PiVjuc3jbF1rMzKk4AyY" \ --request POST \ -- GitLab From 10a832a2c8f0b4da8080936a2d8188949f797e17 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Thu, 22 Oct 2020 11:31:25 +0530 Subject: [PATCH 40/69] # Publish signed apk in release page --- .gitlab-ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bebf5f478..56cdda90f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -52,5 +52,4 @@ publish: "filepath": "play-services-core/build/outputs/apk/", "link_type":"other"}]}}' --header "Content-Type: application/json" \ --header "PRIVATE-TOKEN: PiVjuc3jbF1rMzKk4AyY" \ - --request POST \ - "https://gitlab.e.foundation/api/v4/projects/149/releases" + --request POST 'https://gitlab.e.foundation/api/v4/projects/149/releases' -- GitLab From 0bea711c30741bcdfee041def3cb9777d9c3a013 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Thu, 22 Oct 2020 11:52:51 +0530 Subject: [PATCH 41/69] # Publish signed apk in release page --- .gitlab-ci.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 56cdda90f..b482ef28c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -46,10 +46,7 @@ publish: script: - | curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ - --data '{"ref": "$CI_COMMIT_SHA","tag_name": "$CI_COMMIT_TAG",\ - "name": "$CI_COMMIT_TAG", "description": "$CI_COMMIT_MESSAGE"\, - "assets": {"links":[{"name": "$CI_COMMIT_TAG", "url": "https://gitlab.e.foundation/api/v4/projects/$CI_PROJECT_ID/jobs/artifacts/$CI_COMMIT_TAG/raw/play-services-core/build/outputs/apk/release/play-services-core-release-unsigned.apk?job=build",\ - "filepath": "play-services-core/build/outputs/apk/", "link_type":"other"}]}}' + --data '{"ref": "$CI_COMMIT_SHA","tag_name": "$CI_COMMIT_TAG", "name": "$CI_COMMIT_TAG", "description": "$CI_COMMIT_MESSAGE", "assets": {"links":[{"name": "$CI_COMMIT_TAG", "url": "https://gitlab.e.foundation/api/v4/projects/$CI_PROJECT_ID/jobs/artifacts/$CI_COMMIT_TAG/raw/play-services-core/build/outputs/apk/release/play-services-core-release-unsigned.apk?job=build","filepath": "play-services-core/build/outputs/apk/", "link_type":"other"}]}}'\ --header "Content-Type: application/json" \ --header "PRIVATE-TOKEN: PiVjuc3jbF1rMzKk4AyY" \ --request POST 'https://gitlab.e.foundation/api/v4/projects/149/releases' -- GitLab From 32f1d76e6d12ecf8c0d10dcea0d46bcf93293447 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Thu, 22 Oct 2020 12:07:28 +0530 Subject: [PATCH 42/69] # Publish signed apk in release page --- .gitlab-ci.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b482ef28c..dbc8df51f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -40,13 +40,14 @@ build: publish: stage: publish only: - - tags + - tags # Run only on tags except: - - branches # Do not run this job when a tag is created manually + - branches # Do not run this job on a branch script: - | curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ - --data '{"ref": "$CI_COMMIT_SHA","tag_name": "$CI_COMMIT_TAG", "name": "$CI_COMMIT_TAG", "description": "$CI_COMMIT_MESSAGE", "assets": {"links":[{"name": "$CI_COMMIT_TAG", "url": "https://gitlab.e.foundation/api/v4/projects/$CI_PROJECT_ID/jobs/artifacts/$CI_COMMIT_TAG/raw/play-services-core/build/outputs/apk/release/play-services-core-release-unsigned.apk?job=build","filepath": "play-services-core/build/outputs/apk/", "link_type":"other"}]}}'\ - --header "Content-Type: application/json" \ - --header "PRIVATE-TOKEN: PiVjuc3jbF1rMzKk4AyY" \ - --request POST 'https://gitlab.e.foundation/api/v4/projects/149/releases' + --data "{\"ref\": \"$CI_COMMIT_SHA\",\"tag_name\": \"$CI_COMMIT_TAG\", \"name\": \"$CI_COMMIT_TAG\", \"description\": \"No release notes\"}" \ + --header "Content-Type: application/json" \ + --header "PRIVATE-TOKEN: PiVjuc3jbF1rMzKk4AyY" \ + --request POST \ + "https://gitlab.e.foundation/api/v4/projects/149/releases" -- GitLab From 856551be00b3400d0da9ec9367ce32a31930e5f3 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Tue, 27 Oct 2020 16:01:31 +0530 Subject: [PATCH 43/69] Add asset link in release api --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index dbc8df51f..6e9bb8d5b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -46,7 +46,7 @@ publish: script: - | curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ - --data "{\"ref\": \"$CI_COMMIT_SHA\",\"tag_name\": \"$CI_COMMIT_TAG\", \"name\": \"$CI_COMMIT_TAG\", \"description\": \"No release notes\"}" \ + --data '{ "ref": "$CI_COMMIT_SHA","name": "$CI_COMMIT_TAG", "tag_name": "$CI_COMMIT_TAG", "description": "$CI_COMMIT_MESSAGE", "assets": { "links": [{ "name": "microG.apk", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$CI_COMMIT_TAG/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build", "filepath": "/play-services-core/build/outputs/apk/", "link_type":"other" }] } }' \ --header "Content-Type: application/json" \ --header "PRIVATE-TOKEN: PiVjuc3jbF1rMzKk4AyY" \ --request POST \ -- GitLab From 82c5902e8c743bb276825de024b177e4f23dc238 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Tue, 27 Oct 2020 16:47:44 +0530 Subject: [PATCH 44/69] Add asset link in release api --- .gitlab-ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6e9bb8d5b..1017d91dd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -46,8 +46,9 @@ publish: script: - | curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ - --data '{ "ref": "$CI_COMMIT_SHA","name": "$CI_COMMIT_TAG", "tag_name": "$CI_COMMIT_TAG", "description": "$CI_COMMIT_MESSAGE", "assets": { "links": [{ "name": "microG.apk", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$CI_COMMIT_TAG/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build", "filepath": "/play-services-core/build/outputs/apk/", "link_type":"other" }] } }' \ + --data "{\"ref\": \"$CI_COMMIT_SHA\",\"tag_name\": \"$CI_COMMIT_TAG\", \"name\": \"$CI_COMMIT_TAG\", \"description\": \"$CI_COMMIT_MESSAGE\",\"assets\": {\"links\": [{\"name\": \"test-3-tag\", \"url\": \"https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$CI_COMMIT_TAG/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build", \"filepath\": \"jobs/artifacts/$CI_COMMIT_TAG/download?job=build", \"link_type\":\"other\"}]}}" \ --header "Content-Type: application/json" \ - --header "PRIVATE-TOKEN: PiVjuc3jbF1rMzKk4AyY" \ + --header "JOB-TOKEN: $CI_JOB_ID" \ --request POST \ - "https://gitlab.e.foundation/api/v4/projects/149/releases" + "https://gitlab.e.foundation/api/v4/projects/${CI_PROJECT_ID}/releases" + -- GitLab From 5582b86a10bdde2b53d57a9bc69d192f7715fa26 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Tue, 27 Oct 2020 16:54:41 +0530 Subject: [PATCH 45/69] Add asset link in release api --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1017d91dd..acac23157 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -46,7 +46,7 @@ publish: script: - | curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ - --data "{\"ref\": \"$CI_COMMIT_SHA\",\"tag_name\": \"$CI_COMMIT_TAG\", \"name\": \"$CI_COMMIT_TAG\", \"description\": \"$CI_COMMIT_MESSAGE\",\"assets\": {\"links\": [{\"name\": \"test-3-tag\", \"url\": \"https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$CI_COMMIT_TAG/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build", \"filepath\": \"jobs/artifacts/$CI_COMMIT_TAG/download?job=build", \"link_type\":\"other\"}]}}" \ + --data "{\"ref\": \"$CI_COMMIT_SHA\",\"tag_name\": \"$CI_COMMIT_TAG\", \"name\": \"$CI_COMMIT_TAG\", \"description\": \"$CI_COMMIT_MESSAGE\",\"assets\": {\"links\": [{\"name\": \"test-3-tag\", \"url\": \"https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$CI_COMMIT_TAG/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build", \"filepath\": \"/play-services-core/build/outputs/apk", \"link_type\":\"other\"}]}}" \ --header "Content-Type: application/json" \ --header "JOB-TOKEN: $CI_JOB_ID" \ --request POST \ -- GitLab From 45b133de4432ed1ce946f93d6f9ee2f02cc56426 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Tue, 27 Oct 2020 17:20:48 +0530 Subject: [PATCH 46/69] Add asset link in release api --- .gitlab-ci.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index acac23157..3733ead02 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -45,10 +45,7 @@ publish: - branches # Do not run this job on a branch script: - | - curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ - --data "{\"ref\": \"$CI_COMMIT_SHA\",\"tag_name\": \"$CI_COMMIT_TAG\", \"name\": \"$CI_COMMIT_TAG\", \"description\": \"$CI_COMMIT_MESSAGE\",\"assets\": {\"links\": [{\"name\": \"test-3-tag\", \"url\": \"https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$CI_COMMIT_TAG/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build", \"filepath\": \"/play-services-core/build/outputs/apk", \"link_type\":\"other\"}]}}" \ - --header "Content-Type: application/json" \ - --header "JOB-TOKEN: $CI_JOB_ID" \ - --request POST \ - "https://gitlab.e.foundation/api/v4/projects/${CI_PROJECT_ID}/releases" + curl --header 'Content-Type: application/json' --header "JOB-TOKEN: $CI_JOB_ID" \ + --data '{ "name": "$CI_COMMIT_TAG", "tag_name": "$CI_COMMIT_TAG", "description": "$CI_COMMIT_MESSAGE", "assets": { "links": [{ "name": "$CI_COMMIT_TAG", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$CI_COMMIT_TAG/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build", "filepath": "/play-services-core/build/outputs/apk", "link_type":"other" }] } }' \ + --request POST https://gitlab.e.foundation/api/v4/projects/${CI_PROJECT_ID}/releases -- GitLab From 334e2c4febaf5bb6a7068eed60e8d5915a356ea4 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Tue, 27 Oct 2020 17:29:47 +0530 Subject: [PATCH 47/69] Add asset link in release api --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3733ead02..e01f1f0d1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -46,6 +46,6 @@ publish: script: - | curl --header 'Content-Type: application/json' --header "JOB-TOKEN: $CI_JOB_ID" \ - --data '{ "name": "$CI_COMMIT_TAG", "tag_name": "$CI_COMMIT_TAG", "description": "$CI_COMMIT_MESSAGE", "assets": { "links": [{ "name": "$CI_COMMIT_TAG", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$CI_COMMIT_TAG/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build", "filepath": "/play-services-core/build/outputs/apk", "link_type":"other" }] } }' \ + --data '{ "ref":"$CI_COMMIT_SHA","name": "$CI_COMMIT_TAG", "tag_name": "$CI_COMMIT_TAG", "description": "$CI_COMMIT_MESSAGE", "assets": { "links": [{ "name": "$CI_COMMIT_TAG", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$CI_COMMIT_TAG/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build", "filepath": "/play-services-core/build/outputs/apk", "link_type":"other" }] } }' \ --request POST https://gitlab.e.foundation/api/v4/projects/${CI_PROJECT_ID}/releases -- GitLab From 7525176741864412e8778396a842a2c131ae1fa8 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Tue, 27 Oct 2020 17:38:35 +0530 Subject: [PATCH 48/69] Add asset link in release api --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e01f1f0d1..19ab0d7b2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -45,7 +45,7 @@ publish: - branches # Do not run this job on a branch script: - | - curl --header 'Content-Type: application/json' --header "JOB-TOKEN: $CI_JOB_ID" \ + curl --header 'Content-Type: application/json' --header "PRIVATE-TOKEN: PiVjuc3jbF1rMzKk4AyY" \ --data '{ "ref":"$CI_COMMIT_SHA","name": "$CI_COMMIT_TAG", "tag_name": "$CI_COMMIT_TAG", "description": "$CI_COMMIT_MESSAGE", "assets": { "links": [{ "name": "$CI_COMMIT_TAG", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$CI_COMMIT_TAG/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build", "filepath": "/play-services-core/build/outputs/apk", "link_type":"other" }] } }' \ --request POST https://gitlab.e.foundation/api/v4/projects/${CI_PROJECT_ID}/releases -- GitLab From daaff137d96aaee4b9def9aca9b110d117ea8233 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Wed, 28 Oct 2020 10:44:24 +0530 Subject: [PATCH 49/69] Add asset link in release api --- .gitlab-ci.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 19ab0d7b2..ab781c221 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -45,7 +45,10 @@ publish: - branches # Do not run this job on a branch script: - | - curl --header 'Content-Type: application/json' --header "PRIVATE-TOKEN: PiVjuc3jbF1rMzKk4AyY" \ - --data '{ "ref":"$CI_COMMIT_SHA","name": "$CI_COMMIT_TAG", "tag_name": "$CI_COMMIT_TAG", "description": "$CI_COMMIT_MESSAGE", "assets": { "links": [{ "name": "$CI_COMMIT_TAG", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$CI_COMMIT_TAG/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build", "filepath": "/play-services-core/build/outputs/apk", "link_type":"other" }] } }' \ - --request POST https://gitlab.e.foundation/api/v4/projects/${CI_PROJECT_ID}/releases + curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ + --data "{\"ref\": \"$CI_COMMIT_TAG\",\"tag_name\": \"$CI_COMMIT_TAG\", \"name\": \"$CI_COMMIT_TAG\", \"description\": \"$CI_COMMIT_MESSAGE\",\"assets\": {\"links\": [{\"name\": \"$CI_COMMIT_TAG\", \"url\": \"https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$CI_COMMIT_TAG/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build", \"filepath\": \"artifacts/file/play-services-core/build/outputs/apk/release/play-services-core-release-unsigned.apk", \"link_type\":\"other\"}]}}" \ + --header "Content-Type: application/json" \ + --header "PRIVATE-TOKEN: PiVjuc3jbF1rMzKk4AyY" \ + --request POST \ + "https://gitlab.e.foundation/api/v4/projects/149/releases" -- GitLab From 5a780b95c43c0bdf4d7b5449d9c0e86a9272bb4d Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Wed, 28 Oct 2020 11:07:51 +0530 Subject: [PATCH 50/69] Add asset link in release api --- .gitlab-ci.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ab781c221..c40b769aa 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -42,13 +42,11 @@ publish: only: - tags # Run only on tags except: - - branches # Do not run this job on a branch + - branches # Do not run this job on a branch script: - | curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ - --data "{\"ref\": \"$CI_COMMIT_TAG\",\"tag_name\": \"$CI_COMMIT_TAG\", \"name\": \"$CI_COMMIT_TAG\", \"description\": \"$CI_COMMIT_MESSAGE\",\"assets\": {\"links\": [{\"name\": \"$CI_COMMIT_TAG\", \"url\": \"https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$CI_COMMIT_TAG/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build", \"filepath\": \"artifacts/file/play-services-core/build/outputs/apk/release/play-services-core-release-unsigned.apk", \"link_type\":\"other\"}]}}" \ - --header "Content-Type: application/json" \ + --data '{"ref": "$CI_COMMIT_TAG","tag_name": "$CI_COMMIT_TAG", "name": "$CI_COMMIT_TAG", "description": "$CI_COMMIT_MESSAGE","assets": {"links": [{"name": "$CI_COMMIT_TAG", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$CI_COMMIT_TAG/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build", "filepath": "artifacts/file/play-services-core/build/outputs/apk/release/play-services-core-release-unsigned.apk", "link_type":"other"}]}}"\ + --header 'Content-Type: application/json' \ --header "PRIVATE-TOKEN: PiVjuc3jbF1rMzKk4AyY" \ - --request POST \ - "https://gitlab.e.foundation/api/v4/projects/149/releases" - + --request POST https://gitlab.e.foundation/api/v4/projects/149/releases \ No newline at end of file -- GitLab From 91951657003c3a9857b981b7d366fb0976a22991 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Wed, 28 Oct 2020 11:22:20 +0530 Subject: [PATCH 51/69] Add asset link in release api --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c40b769aa..f99219ab6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -46,7 +46,7 @@ publish: script: - | curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ - --data '{"ref": "$CI_COMMIT_TAG","tag_name": "$CI_COMMIT_TAG", "name": "$CI_COMMIT_TAG", "description": "$CI_COMMIT_MESSAGE","assets": {"links": [{"name": "$CI_COMMIT_TAG", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$CI_COMMIT_TAG/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build", "filepath": "artifacts/file/play-services-core/build/outputs/apk/release/play-services-core-release-unsigned.apk", "link_type":"other"}]}}"\ + --data '{"ref": "$CI_COMMIT_TAG","tag_name": "$CI_COMMIT_TAG", "name": "$CI_COMMIT_TAG", "description": "$CI_COMMIT_MESSAGE","assets": {"links": [{"name": "$CI_COMMIT_TAG", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$CI_COMMIT_TAG/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build", "filepath": "artifacts/file/play-services-core/build/outputs/apk/release/play-services-core-release-unsigned.apk", "link_type":"other"}]}}'\ --header 'Content-Type: application/json' \ --header "PRIVATE-TOKEN: PiVjuc3jbF1rMzKk4AyY" \ --request POST https://gitlab.e.foundation/api/v4/projects/149/releases \ No newline at end of file -- GitLab From 5f37d7d18f4537ef22c4a7a9629292951581d240 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Wed, 28 Oct 2020 11:35:55 +0530 Subject: [PATCH 52/69] Add asset link in release api --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f99219ab6..fd34fe480 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -46,7 +46,7 @@ publish: script: - | curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ - --data '{"ref": "$CI_COMMIT_TAG","tag_name": "$CI_COMMIT_TAG", "name": "$CI_COMMIT_TAG", "description": "$CI_COMMIT_MESSAGE","assets": {"links": [{"name": "$CI_COMMIT_TAG", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$CI_COMMIT_TAG/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build", "filepath": "artifacts/file/play-services-core/build/outputs/apk/release/play-services-core-release-unsigned.apk", "link_type":"other"}]}}'\ + --data '{"ref": "$CI_COMMIT_SHA","tag_name": "$CI_COMMIT_TAG", "name": "$CI_COMMIT_TAG", "description": "$CI_COMMIT_MESSAGE","assets": {"links": [{"name": "$CI_COMMIT_TAG", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$CI_COMMIT_TAG/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build", "filepath": "artifacts/file/play-services-core/build/outputs/apk/release/play-services-core-release-unsigned.apk", "link_type":"other"}]}}'\ --header 'Content-Type: application/json' \ --header "PRIVATE-TOKEN: PiVjuc3jbF1rMzKk4AyY" \ --request POST https://gitlab.e.foundation/api/v4/projects/149/releases \ No newline at end of file -- GitLab From 949f07b8440d79778185c0d667f35a8ef8453115 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Wed, 28 Oct 2020 11:41:53 +0530 Subject: [PATCH 53/69] Update gitlab ci --- .gitlab-ci.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fd34fe480..dbc8df51f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -42,11 +42,12 @@ publish: only: - tags # Run only on tags except: - - branches # Do not run this job on a branch + - branches # Do not run this job on a branch script: - | curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ - --data '{"ref": "$CI_COMMIT_SHA","tag_name": "$CI_COMMIT_TAG", "name": "$CI_COMMIT_TAG", "description": "$CI_COMMIT_MESSAGE","assets": {"links": [{"name": "$CI_COMMIT_TAG", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$CI_COMMIT_TAG/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build", "filepath": "artifacts/file/play-services-core/build/outputs/apk/release/play-services-core-release-unsigned.apk", "link_type":"other"}]}}'\ - --header 'Content-Type: application/json' \ - --header "PRIVATE-TOKEN: PiVjuc3jbF1rMzKk4AyY" \ - --request POST https://gitlab.e.foundation/api/v4/projects/149/releases \ No newline at end of file + --data "{\"ref\": \"$CI_COMMIT_SHA\",\"tag_name\": \"$CI_COMMIT_TAG\", \"name\": \"$CI_COMMIT_TAG\", \"description\": \"No release notes\"}" \ + --header "Content-Type: application/json" \ + --header "PRIVATE-TOKEN: PiVjuc3jbF1rMzKk4AyY" \ + --request POST \ + "https://gitlab.e.foundation/api/v4/projects/149/releases" -- GitLab From 528af9fbc35965146dc643f71aa3a9a68c66da8e Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Mon, 2 Nov 2020 11:16:38 +0530 Subject: [PATCH 54/69] Update gitlab ci --- .gitlab-ci.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index dbc8df51f..997e3e99b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -45,9 +45,7 @@ publish: - branches # Do not run this job on a branch script: - | - curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ - --data "{\"ref\": \"$CI_COMMIT_SHA\",\"tag_name\": \"$CI_COMMIT_TAG\", \"name\": \"$CI_COMMIT_TAG\", \"description\": \"No release notes\"}" \ - --header "Content-Type: application/json" \ - --header "PRIVATE-TOKEN: PiVjuc3jbF1rMzKk4AyY" \ - --request POST \ - "https://gitlab.e.foundation/api/v4/projects/149/releases" + curl --header 'Content-Type: application/json' --header "PRIVATE-TOKEN: PiVjuc3jbF1rMzKk4AyY" \ + --data '{ "ref":"$CI_COMMIT_SHA","name": "$CI_COMMIT_TAG", "tag_name": "$CI_COMMIT_TAG", "description": "$CI_COMMIT_MESSAGE", "assets": { "links": [{ "name": "GMSCore.apk", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$CI_COMMIT_TAG/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build", "filepath": "/play-services-core/build/outputs/apk/", "link_type":"other" }] } }' \ + --request POST https://gitlab.e.foundation/api/v4/projects/149/releases + -- GitLab From da109631af3476b96a433b76ee6aa9bef2f24a35 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Mon, 2 Nov 2020 11:38:18 +0530 Subject: [PATCH 55/69] Update gitlab ci --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 997e3e99b..88032ca2f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -45,7 +45,8 @@ publish: - branches # Do not run this job on a branch script: - | - curl --header 'Content-Type: application/json' --header "PRIVATE-TOKEN: PiVjuc3jbF1rMzKk4AyY" \ + curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ + --header 'Content-Type: application/json' --header "PRIVATE-TOKEN: PiVjuc3jbF1rMzKk4AyY" \ --data '{ "ref":"$CI_COMMIT_SHA","name": "$CI_COMMIT_TAG", "tag_name": "$CI_COMMIT_TAG", "description": "$CI_COMMIT_MESSAGE", "assets": { "links": [{ "name": "GMSCore.apk", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$CI_COMMIT_TAG/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build", "filepath": "/play-services-core/build/outputs/apk/", "link_type":"other" }] } }' \ --request POST https://gitlab.e.foundation/api/v4/projects/149/releases -- GitLab From 7166df61d8e78f088071067e958d54796136bf41 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Mon, 2 Nov 2020 11:40:05 +0530 Subject: [PATCH 56/69] Update gitlab ci --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 88032ca2f..872ea7da4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -46,7 +46,7 @@ publish: script: - | curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ - --header 'Content-Type: application/json' --header "PRIVATE-TOKEN: PiVjuc3jbF1rMzKk4AyY" \ + --header 'Content-Type: application/json' --header "PRIVATE-TOKEN: szxVnyZVfD55xDMaAEBX" \ --data '{ "ref":"$CI_COMMIT_SHA","name": "$CI_COMMIT_TAG", "tag_name": "$CI_COMMIT_TAG", "description": "$CI_COMMIT_MESSAGE", "assets": { "links": [{ "name": "GMSCore.apk", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$CI_COMMIT_TAG/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build", "filepath": "/play-services-core/build/outputs/apk/", "link_type":"other" }] } }' \ --request POST https://gitlab.e.foundation/api/v4/projects/149/releases -- GitLab From af4f63794c75a87ad39a830b452ad6ea92fcf105 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Mon, 2 Nov 2020 11:58:06 +0530 Subject: [PATCH 57/69] Update gitlab ci --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 872ea7da4..f95853398 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -47,6 +47,6 @@ publish: - | curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ --header 'Content-Type: application/json' --header "PRIVATE-TOKEN: szxVnyZVfD55xDMaAEBX" \ - --data '{ "ref":"$CI_COMMIT_SHA","name": "$CI_COMMIT_TAG", "tag_name": "$CI_COMMIT_TAG", "description": "$CI_COMMIT_MESSAGE", "assets": { "links": [{ "name": "GMSCore.apk", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$CI_COMMIT_TAG/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build", "filepath": "/play-services-core/build/outputs/apk/", "link_type":"other" }] } }' \ + --data '{ "ref":"$CI_COMMIT_TAG","name": "$CI_COMMIT_TAG", "tag_name": "$CI_COMMIT_TAG", "description": "$CI_COMMIT_MESSAGE", "assets": { "links": [{ "name": "GMSCore.apk", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$CI_COMMIT_TAG/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build", "filepath": "/play-services-core/build/outputs/apk/", "link_type":"other" }] } }' \ --request POST https://gitlab.e.foundation/api/v4/projects/149/releases -- GitLab From b52153f21ff2a33a7c749e3eae946a87252ad76a Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Mon, 2 Nov 2020 12:04:04 +0530 Subject: [PATCH 58/69] Update gitlab ci --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f95853398..01c4b7fb0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -47,6 +47,6 @@ publish: - | curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ --header 'Content-Type: application/json' --header "PRIVATE-TOKEN: szxVnyZVfD55xDMaAEBX" \ - --data '{ "ref":"$CI_COMMIT_TAG","name": "$CI_COMMIT_TAG", "tag_name": "$CI_COMMIT_TAG", "description": "$CI_COMMIT_MESSAGE", "assets": { "links": [{ "name": "GMSCore.apk", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$CI_COMMIT_TAG/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build", "filepath": "/play-services-core/build/outputs/apk/", "link_type":"other" }] } }' \ + --data '{ "ref":"$CI_COMMIT_TAG","name": "$CI_COMMIT_TAG", "tag_name": "$CI_COMMIT_TAG", "description": "$CI_COMMIT_MESSAGE" }' \ --request POST https://gitlab.e.foundation/api/v4/projects/149/releases -- GitLab From 5b1358cf657fdfdba789c251c51cf8c9356b4c6d Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Wed, 4 Nov 2020 17:09:31 +0530 Subject: [PATCH 59/69] Update gitlab ci --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 01c4b7fb0..8ca421a3c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -47,6 +47,6 @@ publish: - | curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ --header 'Content-Type: application/json' --header "PRIVATE-TOKEN: szxVnyZVfD55xDMaAEBX" \ - --data '{ "ref":"$CI_COMMIT_TAG","name": "$CI_COMMIT_TAG", "tag_name": "$CI_COMMIT_TAG", "description": "$CI_COMMIT_MESSAGE" }' \ + --data '{ "ref":"dev","name": "$CI_COMMIT_TAG", "tag_name": "$CI_COMMIT_TAG", "description": "$CI_COMMIT_MESSAGE" }' \ --request POST https://gitlab.e.foundation/api/v4/projects/149/releases -- GitLab From cd90e25fccd2286f4e45ce4e2ce67c1278ce90bb Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Wed, 4 Nov 2020 17:19:52 +0530 Subject: [PATCH 60/69] Update gitlab ci --- .gitlab-ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8ca421a3c..3b7ebb6d4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -46,7 +46,8 @@ publish: script: - | curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ - --header 'Content-Type: application/json' --header "PRIVATE-TOKEN: szxVnyZVfD55xDMaAEBX" \ - --data '{ "ref":"dev","name": "$CI_COMMIT_TAG", "tag_name": "$CI_COMMIT_TAG", "description": "$CI_COMMIT_MESSAGE" }' \ + --header 'Content-Type: application/json' --header "PRIVATE-TOKEN: PiVjuc3jbF1rMzKk4AyY" \ + --data '{ "ref":"dev","name": "GmsCore", "tag_name": "15624.23.356.0", "description": "This is Test release", "assets": { "links": [{ "name": "GMSCore.apk", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$CI_COMMIT_TAG/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build", "filepath": "/play-services-core/build/outputs/apk/", "link_type":"other" }] } }' \ --request POST https://gitlab.e.foundation/api/v4/projects/149/releases + -- GitLab From dd69ffa604564f7a4e82f06c577cf661f4de5ed0 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Wed, 4 Nov 2020 17:27:43 +0530 Subject: [PATCH 61/69] Update gitlab ci --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3b7ebb6d4..5eaef331e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -46,7 +46,7 @@ publish: script: - | curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ - --header 'Content-Type: application/json' --header "PRIVATE-TOKEN: PiVjuc3jbF1rMzKk4AyY" \ + --header 'Content-Type: application/json' --header "PRIVATE-TOKEN: mkYsSXNe5yLhzhWSXGRv" \ --data '{ "ref":"dev","name": "GmsCore", "tag_name": "15624.23.356.0", "description": "This is Test release", "assets": { "links": [{ "name": "GMSCore.apk", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$CI_COMMIT_TAG/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build", "filepath": "/play-services-core/build/outputs/apk/", "link_type":"other" }] } }' \ --request POST https://gitlab.e.foundation/api/v4/projects/149/releases -- GitLab From 18c344bd531eaa840f0d8bac89c88d2f0045d4fb Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Thu, 5 Nov 2020 11:17:10 +0530 Subject: [PATCH 62/69] Update gitlab ci --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5eaef331e..fdef773ae 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -47,7 +47,7 @@ publish: - | curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ --header 'Content-Type: application/json' --header "PRIVATE-TOKEN: mkYsSXNe5yLhzhWSXGRv" \ - --data '{ "ref":"dev","name": "GmsCore", "tag_name": "15624.23.356.0", "description": "This is Test release", "assets": { "links": [{ "name": "GMSCore.apk", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$CI_COMMIT_TAG/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build", "filepath": "/play-services-core/build/outputs/apk/", "link_type":"other" }] } }' \ + --data '{ "ref":"${CI_COMMIT_SHA}","name": "GmsCore", "tag_name": "${CI_COMMIT_TAG}", "description": "This is Test release", "assets": { "links": [{ "name": "GMSCore.apk", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/${CI_COMMIT_TAG}/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build", "filepath": "/play-services-core/build/outputs/apk/", "link_type":"other" }] } }' \ --request POST https://gitlab.e.foundation/api/v4/projects/149/releases -- GitLab From 06fc7563a8d97ef32a605bce2275502189679e35 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Thu, 5 Nov 2020 11:46:50 +0530 Subject: [PATCH 63/69] Update gitlab ci --- .gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fdef773ae..a9583b2c2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,6 +6,8 @@ stages: variables: GIT_SUBMODULE_STRATEGY: recursive + GIT_TAG: $CI_COMMIT_TAG + GIT_COMMIT: $CI_COMMIT_SHA before_script: - if [ -d "/srv/userscripts" ]; then cp -R userscripts/* /srv/userscripts ; fi @@ -47,7 +49,7 @@ publish: - | curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ --header 'Content-Type: application/json' --header "PRIVATE-TOKEN: mkYsSXNe5yLhzhWSXGRv" \ - --data '{ "ref":"${CI_COMMIT_SHA}","name": "GmsCore", "tag_name": "${CI_COMMIT_TAG}", "description": "This is Test release", "assets": { "links": [{ "name": "GMSCore.apk", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/${CI_COMMIT_TAG}/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build", "filepath": "/play-services-core/build/outputs/apk/", "link_type":"other" }] } }' \ + --data '{ "ref":"$(CI_COMMIT_SHA)","name": "GmsCore", "tag_name": "$(CI_COMMIT_TAG)", "description": "This is Test release", "assets": { "links": [{ "name": "GMSCore.apk", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$(CI_COMMIT_TAG)/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build", "filepath": "/play-services-core/build/outputs/apk/", "link_type":"other" }] } }' \ --request POST https://gitlab.e.foundation/api/v4/projects/149/releases -- GitLab From 86e01e0a3b5c44be77f3cf923cba07561c79b6b8 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Thu, 5 Nov 2020 11:59:31 +0530 Subject: [PATCH 64/69] Update gitlab ci --- .gitlab-ci.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a9583b2c2..5705eee5e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,8 +6,6 @@ stages: variables: GIT_SUBMODULE_STRATEGY: recursive - GIT_TAG: $CI_COMMIT_TAG - GIT_COMMIT: $CI_COMMIT_SHA before_script: - if [ -d "/srv/userscripts" ]; then cp -R userscripts/* /srv/userscripts ; fi @@ -49,7 +47,7 @@ publish: - | curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ --header 'Content-Type: application/json' --header "PRIVATE-TOKEN: mkYsSXNe5yLhzhWSXGRv" \ - --data '{ "ref":"$(CI_COMMIT_SHA)","name": "GmsCore", "tag_name": "$(CI_COMMIT_TAG)", "description": "This is Test release", "assets": { "links": [{ "name": "GMSCore.apk", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/$(CI_COMMIT_TAG)/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build", "filepath": "/play-services-core/build/outputs/apk/", "link_type":"other" }] } }' \ + --data '{ "ref":"%{CI_COMMIT_SHA}","name": "GmsCore", "tag_name": "%{CI_COMMIT_TAG}", "description": "This is Test release", "assets": { "links": [{ "name": "GMSCore.apk", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/%{CI_COMMIT_TAG}/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build", "filepath": "/play-services-core/build/outputs/apk/", "link_type":"other" }] } }' \ --request POST https://gitlab.e.foundation/api/v4/projects/149/releases -- GitLab From e87717774191aa97c5e38b7f5532a654acd219f5 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Thu, 5 Nov 2020 12:08:22 +0530 Subject: [PATCH 65/69] Update gitlab ci --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5705eee5e..34f273948 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -47,7 +47,7 @@ publish: - | curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ --header 'Content-Type: application/json' --header "PRIVATE-TOKEN: mkYsSXNe5yLhzhWSXGRv" \ - --data '{ "ref":"%{CI_COMMIT_SHA}","name": "GmsCore", "tag_name": "%{CI_COMMIT_TAG}", "description": "This is Test release", "assets": { "links": [{ "name": "GMSCore.apk", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/%{CI_COMMIT_TAG}/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build", "filepath": "/play-services-core/build/outputs/apk/", "link_type":"other" }] } }' \ + --data '{ "ref":"'"$CI_COMMIT_SHA"'","name": "GmsCore", "tag_name": "'"$CI_COMMIT_TAG"'", "description": "This is Test release", "assets": { "links": [{ "name": "GMSCore.apk", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/"'"$CI_COMMIT_TAG"'"/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build", "filepath": "/play-services-core/build/outputs/apk/", "link_type":"other" }] } }' \ --request POST https://gitlab.e.foundation/api/v4/projects/149/releases -- GitLab From 1eaf6b9ee920b4f07937489d1ac01a9d3be7bc93 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Thu, 5 Nov 2020 12:54:37 +0530 Subject: [PATCH 66/69] Update curl request --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 34f273948..11a116108 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -47,7 +47,7 @@ publish: - | curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ --header 'Content-Type: application/json' --header "PRIVATE-TOKEN: mkYsSXNe5yLhzhWSXGRv" \ - --data '{ "ref":"'"$CI_COMMIT_SHA"'","name": "GmsCore", "tag_name": "'"$CI_COMMIT_TAG"'", "description": "This is Test release", "assets": { "links": [{ "name": "GMSCore.apk", "url": "https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/"'"$CI_COMMIT_TAG"'"/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build", "filepath": "/play-services-core/build/outputs/apk/", "link_type":"other" }] } }' \ + --data "{\"ref\" : \"${CI_COMMIT_SHA}\",\"name\": \"GmsCore\", \"tag_name\": \"${CI_COMMIT_TAG}\", \"description\": \"This is Test release\", \"assets\": {\"links\": [{\"name\": \"GMSCore.apk\", \"url\": \"https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/CI_COMMIT_TAG/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build\", \"filepath\": \"/play-services-core/build/outputs/apk/\", \"link_type\":\"other\" }] } }" \ --request POST https://gitlab.e.foundation/api/v4/projects/149/releases -- GitLab From d787f5e2753d112a268d3d0a6bddc066486a3581 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Thu, 5 Nov 2020 13:04:35 +0530 Subject: [PATCH 67/69] Update curl request --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 11a116108..abf1ebb35 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -47,7 +47,7 @@ publish: - | curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ --header 'Content-Type: application/json' --header "PRIVATE-TOKEN: mkYsSXNe5yLhzhWSXGRv" \ - --data "{\"ref\" : \"${CI_COMMIT_SHA}\",\"name\": \"GmsCore\", \"tag_name\": \"${CI_COMMIT_TAG}\", \"description\": \"This is Test release\", \"assets\": {\"links\": [{\"name\": \"GMSCore.apk\", \"url\": \"https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/CI_COMMIT_TAG/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build\", \"filepath\": \"/play-services-core/build/outputs/apk/\", \"link_type\":\"other\" }] } }" \ + --data "{\"ref\" : \"${CI_COMMIT_SHA}\",\"name\": \"GmsCore\", \"tag_name\": \"${CI_COMMIT_TAG}\", \"description\": \"${CI_COMMIT_TITLE}\", \"assets\": {\"links\": [{\"name\": \"GMSCore.apk\", \"url\": \"https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/\"${CI_COMMIT_TAG}\"/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build\", \"filepath\": \"/play-services-core/build/outputs/apk/\", \"link_type\":\"other\" }] } }" \ --request POST https://gitlab.e.foundation/api/v4/projects/149/releases -- GitLab From 3682bd90e867322e8934b892e96c1b30e124496b Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Thu, 5 Nov 2020 13:22:12 +0530 Subject: [PATCH 68/69] Update curl request --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index abf1ebb35..bdc5a21cf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -47,7 +47,7 @@ publish: - | curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ --header 'Content-Type: application/json' --header "PRIVATE-TOKEN: mkYsSXNe5yLhzhWSXGRv" \ - --data "{\"ref\" : \"${CI_COMMIT_SHA}\",\"name\": \"GmsCore\", \"tag_name\": \"${CI_COMMIT_TAG}\", \"description\": \"${CI_COMMIT_TITLE}\", \"assets\": {\"links\": [{\"name\": \"GMSCore.apk\", \"url\": \"https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/\"${CI_COMMIT_TAG}\"/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build\", \"filepath\": \"/play-services-core/build/outputs/apk/\", \"link_type\":\"other\" }] } }" \ + --data "{\"ref\" : \"${CI_COMMIT_SHA}\",\"name\": \"GmsCore\", \"tag_name\": \"${CI_COMMIT_TAG}\", \"description\": \"${CI_COMMIT_TITLE}\", \"assets\": {\"links\": [{\"name\": \"GMSCore.apk\", \"url\": \"https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/${CI_COMMIT_TAG}/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build\", \"filepath\": \"/play-services-core/build/outputs/apk/\", \"link_type\":\"other\" }] } }" \ --request POST https://gitlab.e.foundation/api/v4/projects/149/releases -- GitLab From 8fb5941d80c9b829196f2320c1e4a221a75676e1 Mon Sep 17 00:00:00 2001 From: Mohit Mali Date: Thu, 5 Nov 2020 13:39:02 +0530 Subject: [PATCH 69/69] Update curl request --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bdc5a21cf..d2df14b43 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -47,7 +47,7 @@ publish: - | curl --fail --output "/dev/null" --silent --show-error --write-out "HTTP response: ${http_code}\n\n" \ --header 'Content-Type: application/json' --header "PRIVATE-TOKEN: mkYsSXNe5yLhzhWSXGRv" \ - --data "{\"ref\" : \"${CI_COMMIT_SHA}\",\"name\": \"GmsCore\", \"tag_name\": \"${CI_COMMIT_TAG}\", \"description\": \"${CI_COMMIT_TITLE}\", \"assets\": {\"links\": [{\"name\": \"GMSCore.apk\", \"url\": \"https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/${CI_COMMIT_TAG}/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build\", \"filepath\": \"/play-services-core/build/outputs/apk/\", \"link_type\":\"other\" }] } }" \ + --data "{\"ref\" : \"${CI_COMMIT_SHA}\",\"name\": \"${CI_COMMIT_TAG}\", \"tag_name\": \"${CI_COMMIT_TAG}\", \"description\": \"${CI_COMMIT_TITLE}\", \"assets\": {\"links\": [{\"name\": \"GMSCore.apk\", \"url\": \"https://gitlab.e.foundation/api/v4/projects/149/jobs/artifacts/${CI_COMMIT_TAG}/raw//play-services-core/build/outputs/apk/release/play-services-core-release.apk?job=build\", \"filepath\": \"/play-services-core/build/outputs/apk/\", \"link_type\":\"other\" }] } }" \ --request POST https://gitlab.e.foundation/api/v4/projects/149/releases -- GitLab