Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 517953

Summary: OpenCert website at polarsys.org/opencert
Product: Community Reporter: Antoine THOMAS <antoine.thomas>
Component: WebsiteAssignee: phoenix.ui <phoenix.ui-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: chris.guindon, webmaster
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description Antoine THOMAS CLA 2017-06-07 11:05:55 EDT
Hello, the OpenCert website is ready to be published. We used Hugo to generate a static website.

We would like to use the same king of URL than for other Polarsys project. https://www.polarsys.org/opencert would be perfect.

Could you please also create a git repo so we can push the files directly?
Comment 1 Eclipse Webmaster CLA 2017-06-12 15:24:00 EDT
Ok I've created a repo for opencert and have added it to the Polarsys Gerrit instance.  You can push to either: 

https://committer_id@git.polarsys.org/r/a/polarsys.org/opencert

or

ssh://committer_id@git.polarsys.org:29418/polarsys.org/opencert

Project committers can push directly and bypass code review.

The code should be checked out every ~5 minutes.

-M.
Comment 2 Antoine THOMAS CLA 2017-06-13 06:30:50 EDT
Thanks.

How do I find my committer ID for Polarsys Gerrit ?
Comment 3 Eclipse Webmaster CLA 2017-06-13 10:03:24 EDT
If you login to the Gerrit you can find it in one of 2 places:

1) Settings -> Profile -> username

2) Projects -> Select Project -> click either ssh or http and copy the full URL.

-M.
Comment 4 Antoine THOMAS CLA 2017-06-13 10:05:51 EDT
I tried to push the content to the repo.

$ git push origin HEAD:master
Username for 'https://git.polarsys.org': xxxxxxxxxxx
Password for 'https://xxxxxxxxxx@git.polarsys.org': 
remote: Unauthorized
fatal: Authentication failed for 'https://git.polarsys.org/r/polarsys.org/opencert/'

So it seems that even as
Comment 5 Antoine THOMAS CLA 2017-06-13 10:07:20 EDT
So it seems that even if I am a committer, I can't push anything.

I was able to push code for review for APP4MC without any issue. And to review some commits for USS SDK. Is there an issue with my account regarding Polarsys?
Comment 6 Eclipse Webmaster CLA 2017-06-13 12:12:34 EDT
(In reply to Antoine THOMAS from comment #5)

> I was able to push code for review for APP4MC without any issue. And to
> review some commits for USS SDK. Is there an issue with my account regarding
> Polarsys?

I don't think so, but Gerrit uses a custom password for HTTPS access(Settings -> HTTP password to see/set it). Is that the password you are using?

I added myself to the project team and was able to push a testfile into the repo so the basic operations seem ok.

-M.
Comment 7 Antoine THOMAS CLA 2017-06-14 04:29:27 EDT
There is at least some progress: now I can commit but when it is processed it is rejected. How do I fix that email error ?

ttoines-MBP:Polarsys-OpenCert ttoine$ git push origin HEAD:refs/for/master
Counting objects: 247, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (224/224), done.
Writing objects: 100% (247/247), 17.15 MiB | 99.00 KiB/s, done.
Total 247 (delta 26), reused 0 (delta 0)
remote: Resolving deltas: 100% (26/26)
remote: Processing changes: refs: 1, done    
remote: 
remote: ERROR:  In commit b9faa271b6c9baefa1144e91e08b0ec64f410056
remote: ERROR:  committer email address antoine@eclipse.org
remote: ERROR:  does not match your user account.
remote: ERROR:
remote: ERROR:  The following addresses are currently registered:
remote: ERROR:    antoine.thomas@eclipse-foundation.org
remote: ERROR:
remote: ERROR:  To register an email address, please visit:
remote: ERROR:  https://git.polarsys.org/r/#/settings/contact
remote: 
remote: 
To https://git.polarsys.org/r/polarsys.org/opencert
 ! [remote rejected] HEAD -> refs/for/master (invalid committer)
error: failed to push some refs to 'https://git.polarsys.org/r/polarsys.org/opencert'
ttoines-MBP:Polarsys-OpenCert ttoine$
Comment 8 Christopher Guindon CLA 2017-06-14 09:34:49 EDT
(In reply to Antoine THOMAS from comment #7)
> There is at least some progress: now I can commit but when it is processed
> it is rejected. How do I fix that email error ?
> 
> ttoines-MBP:Polarsys-OpenCert ttoine$ git push origin HEAD:refs/for/master
> Counting objects: 247, done.
> Delta compression using up to 8 threads.
> Compressing objects: 100% (224/224), done.
> Writing objects: 100% (247/247), 17.15 MiB | 99.00 KiB/s, done.
> Total 247 (delta 26), reused 0 (delta 0)
> remote: Resolving deltas: 100% (26/26)
> remote: Processing changes: refs: 1, done    
> remote: 
> remote: ERROR:  In commit b9faa271b6c9baefa1144e91e08b0ec64f410056
> remote: ERROR:  committer email address antoine@eclipse.org
> remote: ERROR:  does not match your user account.
> remote: ERROR:
> remote: ERROR:  The following addresses are currently registered:
> remote: ERROR:    antoine.thomas@eclipse-foundation.org
> remote: ERROR:
> remote: ERROR:  To register an email address, please visit:
> remote: ERROR:  https://git.polarsys.org/r/#/settings/contact
> remote: 
> remote: 
> To https://git.polarsys.org/r/polarsys.org/opencert
>  ! [remote rejected] HEAD -> refs/for/master (invalid committer)
> error: failed to push some refs to
> 'https://git.polarsys.org/r/polarsys.org/opencert'
> ttoines-MBP:Polarsys-OpenCert ttoine$

git commit --amend should do the trick here.
Comment 9 Christopher Guindon CLA 2017-06-14 09:55:52 EDT
(In reply to Christopher Guindon from comment #8)
> (In reply to Antoine THOMAS from comment #7)
> > There is at least some progress: now I can commit but when it is processed
> > it is rejected. How do I fix that email error ?
> > 
> > ttoines-MBP:Polarsys-OpenCert ttoine$ git push origin HEAD:refs/for/master
> > Counting objects: 247, done.
> > Delta compression using up to 8 threads.
> > Compressing objects: 100% (224/224), done.
> > Writing objects: 100% (247/247), 17.15 MiB | 99.00 KiB/s, done.
> > Total 247 (delta 26), reused 0 (delta 0)
> > remote: Resolving deltas: 100% (26/26)
> > remote: Processing changes: refs: 1, done    
> > remote: 
> > remote: ERROR:  In commit b9faa271b6c9baefa1144e91e08b0ec64f410056
> > remote: ERROR:  committer email address antoine@eclipse.org
> > remote: ERROR:  does not match your user account.
> > remote: ERROR:
> > remote: ERROR:  The following addresses are currently registered:
> > remote: ERROR:    antoine.thomas@eclipse-foundation.org
> > remote: ERROR:
> > remote: ERROR:  To register an email address, please visit:
> > remote: ERROR:  https://git.polarsys.org/r/#/settings/contact
> > remote: 
> > remote: 
> > To https://git.polarsys.org/r/polarsys.org/opencert
> >  ! [remote rejected] HEAD -> refs/for/master (invalid committer)
> > error: failed to push some refs to
> > 'https://git.polarsys.org/r/polarsys.org/opencert'
> > ttoines-MBP:Polarsys-OpenCert ttoine$
> 
> git commit --amend should do the trick here.

To be more precise, this should do the trick for you:

git commit --amend --author="Christopher Guindon <chris.guindon@eclipse-foundation.org>"

Just update the command with your information.