{"action":"created","issue":{"url":"https://api.github.com/repos/jenkins-x/jx/issues/5279","repository_url":"https://api.github.com/repos/jenkins-x/jx","labels_url":"https://api.github.com/repos/jenkins-x/jx/issues/5279/labels{/name}","comments_url":"https://api.github.com/repos/jenkins-x/jx/issues/5279/comments","events_url":"https://api.github.com/repos/jenkins-x/jx/issues/5279/events","html_url":"https://github.com/jenkins-x/jx/issues/5279","id":487492654,"node_id":"MDU6SXNzdWU0ODc0OTI2NTQ=","number":5279,"title":"jx boot dev pipeline fails","user":{"login":"vfarcic","id":5716227,"node_id":"MDQ6VXNlcjU3MTYyMjc=","avatar_url":"https://avatars2.githubusercontent.com/u/5716227?v=4","gravatar_id":"","url":"https://api.github.com/users/vfarcic","html_url":"https://github.com/vfarcic","followers_url":"https://api.github.com/users/vfarcic/followers","following_url":"https://api.github.com/users/vfarcic/following{/other_user}","gists_url":"https://api.github.com/users/vfarcic/gists{/gist_id}","starred_url":"https://api.github.com/users/vfarcic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vfarcic/subscriptions","organizations_url":"https://api.github.com/users/vfarcic/orgs","repos_url":"https://api.github.com/users/vfarcic/repos","events_url":"https://api.github.com/users/vfarcic/events{/privacy}","received_events_url":"https://api.github.com/users/vfarcic/received_events","type":"User","site_admin":false},"labels":[{"id":1427401279,"node_id":"MDU6TGFiZWwxNDI3NDAxMjc5","url":"https://api.github.com/repos/jenkins-x/jx/labels/area/boot","name":"area/boot","color":"2b59f2","default":false},{"id":1150636247,"node_id":"MDU6TGFiZWwxMTUwNjM2MjQ3","url":"https://api.github.com/repos/jenkins-x/jx/labels/kind/bug","name":"kind/bug","color":"a3c1e2","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2019-08-30T13:46:08Z","updated_at":"2019-09-06T11:06:20Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"### Summary \r\n\r\nAfter executing `jx boot`, a few files were changed in the local copy of the `dev` repository. After pushing those changes to GitHub, a new activity is executed and it fails.\r\n\r\n### Steps to reproduce the behavior\r\n\r\n```bash\r\nPROJECT=[...]\r\n\r\nCLUSTER_NAME=[...]boot)\r\n\r\ngcloud auth login\r\n\r\ngcloud container clusters \\\r\n    create $CLUSTER_NAME \\\r\n    --project $PROJECT \\\r\n    --region us-east1 \\\r\n    --machine-type n1-standard-2 \\\r\n    --enable-autoscaling \\\r\n    --num-nodes 1 \\\r\n    --max-nodes 2 \\\r\n    --min-nodes 1\r\n\r\nkubectl create clusterrolebinding \\\r\n    cluster-admin-binding \\\r\n    --clusterrole cluster-admin \\\r\n    --user $(gcloud config get-value account)\r\n\r\nGH_USER=[...]\r\n\r\nopen \"https://github.com/jenkins-x/jenkins-x-boot-config.git\"\r\n\r\n# Fork it\r\n\r\ngit clone \\\r\n    https://github.com/$GH_USER/jenkins-x-boot-config.git \\\r\n    environment-$CLUSTER_NAME-dev\r\n\r\ncd environment-$CLUSTER_NAME-dev\r\n\r\ncat jx-requirements.yml\r\n\r\ncat jx-requirements.yml \\\r\n    | sed -e \\\r\n    \"s@clusterName: \\\"\\\"@clusterName: \\\"$CLUSTER_NAME\\\"@g\" \\\r\n    | tee jx-requirements.yml\r\n\r\ncat jx-requirements.yml \\\r\n    | sed -e \\\r\n    \"s@nvironmentGitOwner: \\\"\\\"@nvironmentGitOwner: \\\"$GH_USER\\\"@g\" \\\r\n    | tee jx-requirements.yml\r\n\r\ncat jx-requirements.yml \\\r\n    | sed -e \\\r\n    \"s@project: \\\"\\\"@project: \\\"$PROJECT\\\"@g\" \\\r\n    | tee jx-requirements.yml\r\n\r\nZONE=[...] # e.g., us-east1\r\n\r\ncat jx-requirements.yml \\\r\n    | sed -e \\\r\n    \"s@zone: \\\"\\\"@zone: \\\"$ZONE\\\"@g\" \\\r\n    | tee jx-requirements.yml\r\n\r\njx boot\r\n\r\ngit push\r\n\r\njx get activities --watch\r\n\r\n# Wait until the new activity is finished. It will fail.\r\n\r\njx get build logs\r\n```\r\n\r\nThe last entries of the output of the last command are as follows.\r\n\r\n```\r\nShowing logs for build vfarcic-environment-jx-boot-dev-1 stage release and container step-helm-populate-params\r\ndefaulting to secret storage scheme local found from requirements file at /workspace/source/**-requirements.yml\r\ndefaulting to secret base path to the cluster name **-boot found from requirements file at /workspace/source/**-requirements.yml\r\n\r\nJenkins X Admin Username ***** [Automatically accepted existing value]\r\nerror: asking questions for schema: EOF\r\n? Jenkins X Admin Password [? for help]\r\n\r\nPipeline failed on stage 'release' : container 'step-helm-populate-params'. The execution of the pipeline has stopped.\r\n```\r\n\r\n### Expected behavior\r\n\r\n1. Pushing the changes created by `jx boot` and already applied to the server should not create an activity.\r\n2. The activity should not fail\r\n\r\n### Actual behavior\r\n\r\nThe opposite of the expected.\r\n\r\n### Jx version\r\n\r\nThe output of `jx version` is:\r\n\r\n```\r\nNAME               VERSION\r\njx                 2.0.649\r\nKubernetes cluster v1.12.8-gke.10\r\nkubectl            v1.15.3\r\nhelm client        Client: v2.14.1+g5270352\r\ngit                2.20.1 (Apple Git-117)\r\nOperating System   Mac OS X 10.14.6 build 18G87\r\n```\r\n\r\n### Jenkins type\r\n\r\n<!--\r\nSelect which installation type are you using. \r\n-->\r\n- [X] Serverless Jenkins X Pipelines (Tekton + Prow)\r\n- [ ] Classic Jenkins\r\n\r\n### Kubernetes cluster\r\n\r\nGKE created with `gcloud`\r\n\r\n### Operating system / Environment\r\n\r\nmacOS"},"comment":{"url":"https://api.github.com/repos/jenkins-x/jx/issues/comments/528812326","html_url":"https://github.com/jenkins-x/jx/issues/5279#issuecomment-528812326","issue_url":"https://api.github.com/repos/jenkins-x/jx/issues/5279","id":528812326,"node_id":"MDEyOklzc3VlQ29tbWVudDUyODgxMjMyNg==","user":{"login":"vfarcic","id":5716227,"node_id":"MDQ6VXNlcjU3MTYyMjc=","avatar_url":"https://avatars2.githubusercontent.com/u/5716227?v=4","gravatar_id":"","url":"https://api.github.com/users/vfarcic","html_url":"https://github.com/vfarcic","followers_url":"https://api.github.com/users/vfarcic/followers","following_url":"https://api.github.com/users/vfarcic/following{/other_user}","gists_url":"https://api.github.com/users/vfarcic/gists{/gist_id}","starred_url":"https://api.github.com/users/vfarcic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vfarcic/subscriptions","organizations_url":"https://api.github.com/users/vfarcic/orgs","repos_url":"https://api.github.com/users/vfarcic/repos","events_url":"https://api.github.com/users/vfarcic/events{/privacy}","received_events_url":"https://api.github.com/users/vfarcic/received_events","type":"User","site_admin":false},"created_at":"2019-09-06T11:06:20Z","updated_at":"2019-09-06T11:06:20Z","author_association":"CONTRIBUTOR","body":"This is still happening. Apart from fixing the issue, I believe that `jx boot` should push the changes it does to that local copy of the repo before creating the webhook. Otherwise, if we push the changes that will always execute the second build even though `jx boot` already processed everything."}}
{"actor":{"display_login":"vfarcic"}}