...
...
...
...
If users want to leave comments they need a userid, all licensed users can have one. If they do not already have an account, they can register for web-only at: https://www.ecmwf.int/register/ Once they register I still have to add them to the list of authorized users on the OpenIFS wiki.
Authentication
Anyone wishing to access the OpenIFS git repository needs an account.
there are actually two ways of login in http://software.ecmwf.int/stash
- You can login first in www.ecmwf.int using your ecmwf password and then you are also logged in http://software.ecmwf.int (in stash, confluence, JIRA...)
- Or you can login in http://software.ecmwf.int/stash using your JIRA (or stash) password. (but then you are only logged in stash)
The problem is that to access with git and https (not ssh?) you have to use your JIRA password. And I think were all the problem was. (The same applies to https://software.ecmwf.int:8443/stash/)
Stash setup
Ensure user has an account and password for Stash. If no userid, go to old.ecmwf.int/login and register. I then need to add this new user to the repository if they are outside ECMWF
Then go to - https://software.ecmwf.int/stash/login.
If user has not yet set a password, or needs a password reset, they need to navigate to JIRA (go to software.ecmwf.int and click on Issues tab). They should be logged out to do this. Once on JIRA, click 'login' and then click on the "Can't access your account?" link which will send them an email describing how to reset the password. This is also easiest way to change the password.
Once password is set, make sure userid and password work ok and the user can login to stash and see the OpenIFS git repository.
More detailed information is available.
Panel |
---|
from Daniel: The passwords can not be set in Stash, it has to be done in JIRA that acts as a Directory Server for Stash. So you have to go to https://software.ecmwf.int/issues and set the password there. It should sync to Stash after 15 minutes or so. |
Cloning
To clone the repository at the remote site (once above login is successful):
Code Block |
---|
mkdir ecmwf
cd ecmwf
git clone https://software.ecmwf.int/stash/scm/oifs/openifs.git
cd openifs
git checkout release/v04 # or whichever release required. |
This will prompt for username and password and create a directory 'openifs' in 'ecmwf'.
Use 'ssh' protocol if within ECMWF as https doesn't work.
That's it!
Example email to users
...
5. To work with an OpenIFS release once you have the git repository:
git checkout release/v04
Configure Git for the first time
git config --global user.name "Glenn Carver"
git config --global user.email "Glenn.Carver@ecmwf.int"
Working with your repository
I just want to clone this repository
If you want to simply clone this empty repository then run this command in your terminal.
git clone ssh://git@software.ecmwf.int:7999/oifs/contrib.git
My code is ready to be pushed
If you already have code ready to be pushed to this repository then run this in your terminal.
cd existing-project
git init
git add --all
git commit -m "Initial Commit"
git remote add origin ssh://git@software.ecmwf.int:7999/oifs/contrib.git
git push origin master
My code is already tracked by Git
If your code is already tracked by Git then set this repository as your "origin" to push to.
cd existing-project
git remote set-url origin ssh://git@software.ecmwf.int:7999/oifs/contrib.git
git push origin master
Useful links
...