[Builder] Build failed in Jenkins: iam-cloud » asgardeo-log-mgt #10

cbuilder at wso2.org cbuilder at wso2.org
Mon Sep 12 23:19:54 PDT 2022


See <https://wso2.org/jenkins/job/iam-cloud/job/asgardeo-log-mgt/10/display/redirect?page=changes>

Changes:

[Chamath Samarawickrama] Add SCM tag


------------------------------------------
[...truncated 828.30 KB...]
+ release='{
  "message": "Validation Failed",
  "errors": [
    {
      "resource": "Release",
      "code": "already_exists",
      "field": "tag_name"
    }
  ],
  "documentation_url": "https://docs.github.com/rest/reference/repos#create-a-release"
}'
+ '[' 0 -eq 0 ']'
+ echo 'Release : Successful'
Release : Successful
+ echo ===========================================
===========================================
+ echo ''

++ echo '{' '"message":' '"Validation' 'Failed",' '"errors":' '[' '{' '"resource":' '"Release",' '"code":' '"already_exists",' '"field":' '"tag_name"' '}' '],' '"documentation_url":' '"https://docs.github.com/rest/reference/repos#create-a-release"' '}'
++ jq -r .id
+ id=null
+ scope_validator_file_name_prefix=com.wso2.identity.asgardeo.feature.gate.scope.validator-
+ scope_validator_file_type=.jar
+ scope_validator_file_name=com.wso2.identity.asgardeo.feature.gate.scope.validator-1.0.0.jar
+ scope_validator_path_prefix=@
+ scope_validator_base_path=com.wso2.identity.asgardeo.feature.gate.scope.validator/target/
+ scope_validator_file_location=@com.wso2.identity.asgardeo.feature.gate.scope.validator/target/com.wso2.identity.asgardeo.feature.gate.scope.validator-1.0.0.jar
+ touch release_artifact_deployment_details.txt
+ echo 'Uploading the Scope Validator artifact...'
Uploading the Scope Validator artifact...
+ echo ===========================================
===========================================
+ echo ''

++ curl -XPOST --user **** -H Content-Type:application/octet-stream --data-binary @com.wso2.identity.asgardeo.feature.gate.scope.validator/target/com.wso2.identity.asgardeo.feature.gate.scope.validator-1.0.0.jar 'https://uploads.github.com/repos/wso2-enterprise/asgardeo-feature-gate/releases/null/assets?name=com.wso2.identity.asgardeo.feature.gate.scope.validator-1.0.0.jar'
Warning: Couldn't read data from file 
Warning: "com.wso2.identity.asgardeo.feature.gate.scope.validator/target/com.ws
Warning: o2.identity.asgardeo.feature.gate.scope.validator-1.0.0.jar", this 
Warning: makes an empty POST.
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0100   122  100   122    0     0    662      0 --:--:-- --:--:-- --:--:--   666
+ scope_validator_upload='{"message":"Not Found","request_id":"8B5E:6D44:13EA86:1F07A3:632020EA","documentation_url":"https://docs.github.com/rest"}'
++ echo '{"message":"Not' 'Found","request_id":"8B5E:6D44:13EA86:1F07A3:632020EA","documentation_url":"https://docs.github.com/rest"}'
++ jq -r .id
+ scope_validator_artifact_id=null
++ echo '{"message":"Not' 'Found","request_id":"8B5E:6D44:13EA86:1F07A3:632020EA","documentation_url":"https://docs.github.com/rest"}'
++ jq -r .name
+ scope_validator_artifact_name=null
+ echo '"github asset location": "wso2-enterprise/asgardeo-feature-gate/releases/assets/null",
    "copy_destination": "/repository/components/dropins/",
    "full_artifact_name": "null",
    "release_version": "v1.0.0",
    "extract" : "false"'
+ echo ''
+ echo 'Uploading release_artifact_deployment_details.txt...'
Uploading release_artifact_deployment_details.txt...
+ echo ===========================================
===========================================
+ echo ''

+ curl -XPOST --user **** -H Content-Type:application/octet-stream --data-binary @release_artifact_deployment_details.txt 'https://uploads.github.com/repos/wso2-enterprise/asgardeo-feature-gate/releases/null/assets?name=release_artifact_deployment_details.txt'
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0100   360  100   122  100   238    738   1440 --:--:-- --:--:-- --:--:--  1433100   360  100   122  100   238    737   1439 --:--:-- --:--:-- --:--:--  1433
{"message":"Not Found","request_id":"8B60:64D0:24845B:312986:632020EA","documentation_url":"https://docs.github.com/rest"}+ '[' 0 -eq 0 ']'
+ echo 'Upload the artifact : Successful'
Upload the artifact : Successful
+ echo ===========================================
===========================================
+ echo ''

+ echo 'Initating PR creation process for Asgardeo Product Repository'
Initating PR creation process for Asgardeo Product Repository
+ echo ===========================================
===========================================
+ echo ''

+ product_pr_branch=artifact-changes#feature-gate#v1.0.0
+ artifacts_json_path=artifacts.json
+ echo 'Cloning Asgardeo Product Repository'
Cloning Asgardeo Product Repository
+ echo ===========================================
===========================================
+ echo ''

+ git clone https://****@github.com/wso2-enterprise/asgardio-product.git
Cloning into 'asgardio-product'...
+ cd asgardio-product
+ echo 'Configuring remote push URL for the Asgardeo Product fork'
Configuring remote push URL for the Asgardeo Product fork
+ echo ===========================================
===========================================
+ echo ''

+ git remote set-url --push origin https://****@github.com/wso2-jenkins-bot/asgardio-product.git
+ echo 'Creating a branch for the ubuntu artifacts.json changes'
Creating a branch for the ubuntu artifacts.json changes
+ echo ===========================================
===========================================
+ echo ''

+ git checkout -b artifact-changes#feature-gate#v1.0.0
Switched to a new branch 'artifact-changes#feature-gate#v1.0.0'
+ echo 'Updating artifacts.json'
Updating artifacts.json
+ echo ===========================================
===========================================
+ echo ''

+ jq '[ .[] | if has("full_artifact_name") and (.full_artifact_name | test("com.wso2.identity.asgardeo.feature.gate.scope.validator")?) then .release_version = "v1.0.0" | .artifact_location = "wso2-enterprise/asgardeo-feature-gate/releases/assets/null" | .full_artifact_name = "null" else . end ]' artifacts.json
+ echo 'Replicating the temporary changes to artifacts.json'
Replicating the temporary changes to artifacts.json
+ echo ===========================================
===========================================
+ echo ''

+ cat temp-artifacts.json
+ COMMIT_ID=814dbe78ea2474142a513723dbf893dbab2c8b14
+ REPO=asgardeo-feature-gate
+ UPLOAD_CHANGE_LOG 814dbe78ea2474142a513723dbf893dbab2c8b14 asgardeo-feature-gate null
+ COMMIT_ID=814dbe78ea2474142a513723dbf893dbab2c8b14
+ REPO=asgardeo-feature-gate
+ RELEASE_ID=null
+ echo 'Reading PR_RESPONSE...'
Reading PR_RESPONSE...
++ curl --user **** -H 'Accept: application/vnd.github.groot-preview+json' https://api.github.com/repos/wso2-enterprise/asgardeo-feature-gate/commits/814dbe78ea2474142a513723dbf893dbab2c8b14/pulls
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0100   200  100   200    0     0   2098      0 --:--:-- --:--:-- --:--:--  2105
+ PR_RESPONSE='{
  "message": "No commit found for SHA: 814dbe78ea2474142a513723dbf893dbab2c8b14",
  "documentation_url": "https://docs.github.com/rest/commits/commits#list-pull-requests-associated-with-a-commit"
}'
++ echo '{' '"message":' '"No' commit found for SHA: '814dbe78ea2474142a513723dbf893dbab2c8b14",' '"documentation_url":' '"https://docs.github.com/rest/commits/commits#list-pull-requests-associated-with-a-commit"' '}'
++ jq -r 'try (.[].number)'
++ head -1
+ PR_ID=
+ [[ '' != '' ]]
+ echo 'PR_RESPONSE is empty... Try fetching PR details with parent commit id'
PR_RESPONSE is empty... Try fetching PR details with parent commit id
+ local i=0
+ [[ 0 -le 2 ]]
+ echo 'Reading COMMIT_RESPONSE...'
Reading COMMIT_RESPONSE...
++ curl -X GET --user **** -H 'Accept: application/vnd.github.cloak-preview+json' 'https://api.github.com/search/commits?q=+repo:wso2-enterprise/asgardeo-feature-gate+text:814dbe78ea2474142a513723dbf893dbab2c8b14'
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0100    73  100    73    0     0    305      0 --:--:-- --:--:-- --:--:--   305
+ COMMIT_RESPONSE='{
  "total_count": 0,
  "incomplete_results": false,
  "items": [

  ]
}'
++ echo '{' '"total_count":' 0, '"incomplete_results":' false, '"items":' '[' ']' '}'
++ jq -r .incomplete_results
+ IS_INCOMPLETE_RESULTS=false
+ echo 'IS_INCOMPLETE_RESULTS: false'
IS_INCOMPLETE_RESULTS: false
+ [[ false == \f\a\l\s\e ]]
+ echo 'Results found... exiting loop...'
Results found... exiting loop...
+ break
++ echo '{' '"total_count":' 0, '"incomplete_results":' false, '"items":' '[' ']' '}'
++ jq -r .items
+ ITEMS='[]'
++ echo '[]'
++ jq -r '.[].parents[].sha'
++ head -1
+ COMMIT_ID=
+ echo 'Reading PARENT_COMMIT_RESPONSE...'
Reading PARENT_COMMIT_RESPONSE...
++ curl --user **** -H 'Accept: application/vnd.github.groot-preview+json' https://api.github.com/repos/wso2-enterprise/asgardeo-feature-gate/commits//pulls
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0100   160  100   160    0     0   1910      0 --:--:-- --:--:-- --:--:--  1927
+ PR_RESPONSE='{
  "message": "No commit found for SHA: ",
  "documentation_url": "https://docs.github.com/rest/commits/commits#list-pull-requests-associated-with-a-commit"
}'
++ echo '{' '"message":' '"No' commit found for SHA: '",' '"documentation_url":' '"https://docs.github.com/rest/commits/commits#list-pull-requests-associated-with-a-commit"' '}'
++ jq -r 'try (.[].number)'
++ head -1
+ PR_ID=
+ [[ '' != '' ]]
+ echo 'PR_ID cannot be found for COMMIT_ID: '
PR_ID cannot be found for COMMIT_ID: 
+ [[ '' != '' ]]
+ echo 'PR_ID cannot be found.'
PR_ID cannot be found.
+ echo 'Commiting and pushing the artifacts.json changes to the fork'
Commiting and pushing the artifacts.json changes to the fork
+ echo ===========================================
===========================================
+ echo ''

+ git status
On branch artifact-changes#feature-gate#v1.0.0
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

	modified:   artifacts.json

Untracked files:
  (use "git add <file>..." to include in what will be committed)

	temp-artifacts.json

no changes added to commit (use "git add" and/or "git commit -a")
+ git add artifacts.json
+ git commit -m 'Update artifacts.json for asgardeo-feature-gate - v1.0.0 release'
[artifact-changes#feature-gate#v1.0.0 9918f6e] Update artifacts.json for asgardeo-feature-gate - v1.0.0 release
 1 file changed, 3 insertions(+), 3 deletions(-)
+ git status
On branch artifact-changes#feature-gate#v1.0.0
Untracked files:
  (use "git add <file>..." to include in what will be committed)

	temp-artifacts.json

nothing added to commit but untracked files present (use "git add" to track)
+ git push origin artifact-changes#feature-gate#v1.0.0
To https://****@github.com/wso2-jenkins-bot/asgardio-product.git
 ! [rejected]        artifact-changes#feature-gate#v1.0.0 -> artifact-changes#feature-gate#v1.0.0 (fetch first)
error: failed to push some refs to 'https://****@github.com/wso2-jenkins-bot/asgardio-product.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Build step 'Execute shell' marked build as failure
using credential github-user-for-maven-releases
 > git rev-parse HEAD^{commit} # timeout=10
using credential github-user-for-maven-releases
 > git rev-parse HEAD^{commit} # timeout=10
------------------------------------------------------------------------

[WSO2 Maven Release] [WSO2 Maven Release] Build Result: FAILURE
[WSO2 Maven Release] Dropping Git Tag: v1.0.0. Reason: FAILURE build.

[WSO2 Maven Release] Deleting release tag from remote.
 > git --version # timeout=10
using GIT_ASKPASS to set credentials github user for maven release plugin (CD)
 > git push https://github.com/wso2-enterprise/asgardeo-log-mgt.git :refs/tags/v1.0.0 # timeout=10
[WSO2 Maven Release] Dropped git tag - v1.0.0
[WSO2 Maven Release] Not Releasing the Nexus repository. "release:perform" goal is not defined in build goals -Dresume=false -Darguments='-Dadditionalparam=-Xdoclint:none' release:prepare -P wso2-release


More information about the Builder mailing list