cul-it / ci-jenkins-pantheon-wordpress

MIT License
2 stars 1 forks source link

Jenkins fails to add code to multidev #180

Open jgreidy opened 2 weeks ago

jgreidy commented 2 weeks ago

The jenkins script https://jenkins.library.cornell.edu/job/ci-jenkins-pantheon-wordpress/ creates a multidev environment in https://dashboard.pantheon.io/sites/a700ef3d-b210-44c1-8563-68a10650aa74#multidev but does not copy the new code into the environment.

jgreidy commented 2 weeks ago

I did 2 things - not sure which caused the Jenkins script to work again:

  1. added a remote on my local copy of ci-jenkins-pantheon-wordpress with git remote add pantheon-wordpress https://github.com/pantheon-systems/WordPress.git

  2. Went on the new jenkins server to /cul/data/jenkins/workspace/ci-jenkins-pantheon-wordpress and tried git status. I got the error message `fatal: detected dubious ownership in repository at '/cul/data/jenkins/workspace/ci-jenkins-pantheon-wordpress' To add an exception for this directory, call:

    git config --global --add safe.directory /cul/data/jenkins/workspace/ci-jenkins-pantheon-wordpress ` so I ran that git config command.

jgreidy commented 2 weeks ago

new jenkins server is aws-108-102.internal.library.cornell.edu

jgreidy commented 1 week ago

I just removed the upstream from my local copy of this repo. Having my local connected like this seems to push code changes to Pantheon before Jenkins is involved at all., The changes show up as a new upstream on Pantheon.

I'm trying to test the upstream building process again. I made a new version 'origin/release/v2.7.8' and pushed that to github. Jenkins ran, created upstream ci-774, then deleted it. No new upstream appears on Pantheon. Now I make a PR to merge this branch into master.

jgreidy commented 1 week ago

I merge the PR (all checks have passed due to the previous push and jenkins test run). Jenkins runs again. Builds multidev 'ci-775'

jgreidy commented 1 week ago

Merging multi-dev changes to master

(this is in the Jenkins script)

jgreidy commented 1 week ago

then the jenkins script finishes SUCCESS

[notice] Merged the ci-775 environment into dev.

and it deletes the multidev ci-775

jgreidy commented 1 week ago

at this point I can see the new upstream comment 'wordpress - generate a new version for test (#184) ' here: https://dashboard.pantheon.io/sites/0658f75c-a906-4cc2-9c57-44a8177e65e5#getupstream

jgreidy commented 1 week ago

I make a clone of uls-upstream-test getupstream multidev without merging the new upstream. In the clone I see CHANGELOG.md starts with

[v2.7.7] - 2024-09-04

Changed

Now I apply the update on Pantheon

jgreidy commented 1 week ago

Before I pull the updated code into my clone, I can see the updated code in my clone.

Screenshot 2024-09-05 at 9 11 07 AM
jgreidy commented 1 week ago

After I pull the new code, the getupstream branch moves to the top, and the updated code is still there. I can see it in CHANGELOG.md also.

Screenshot 2024-09-05 at 9 12 36 AM
jgreidy commented 1 week ago

I run the composer install. Screenshot 2024-09-05 at 9 16 25 AM

jgreidy commented 1 week ago

The composer install added the new version of cul-it/wp-rss-aggregator from yesterday's updates. I commit the changes to my local clone and push to Pantheon getupstream multidev. The site seems to be working.