In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
Today, I have configured jenkins, which is quite smooth. I will share the whole process with you.
1. Check whether the secret key exists
Open the terminal to see if the SSH key already exists: cd ~ / .ssh
If you don't have a key, you won't have this folder. If you do, you can delete it by backup or directly.
two。 Generate a new secret key with the following command
$ssh-keygen-t rsa-C "youremail@example.com"
Press enter to generate id_rsa and id_rsa.pub files, enter the file directory with the command and copy the key in id_rsa.pub
$cd ~ / .ssh
$cat id_rsa.pub
Then paste it into your own github
Add ssh
If you do not have repositories on your gitHub, you need to create your own repositories, and then generate a remote address of your own github project, such as: git@github.com:xxx/xxx.git
Then create a local directory where your project is stored, using the following command
$git init
$git commit-a-m "README.md"
$git push origin master
$git clone git@github.com:xxx/xxx.git
Pull the remote code to the local directory. If there is no project on the remote, the local code can be pushed to the remote server
$git add.
$git commit-a-m "update"
$git push-rebase
In the future, every change commit can be used normally.
Below, I would like to talk about the first time I configured jenkins today, and I have also referred to many articles on the Internet, as follows:
First, we open the terminal and install jenkins with the following command:
$brew install jenkins
Command after installation
The following appears after $jenkins
It means that your installation is successful. After that, we open the browser and enter the URL localhost:8080, then log in with the local administrator admin and install the relevant plug-ins, mainly git Plugin.
Gradle Plugin and Android lint Plugin (I installed them all). Next refresh the page and you can see this page.
Of course, we can also manage the plug-ins we downloaded in system management, and we can download the plug-ins we need again.
After that, we open the system settings in system management.
Set global system variabl
Key can be any string. For example, the android_home value is your android sdk directory path, and you can save it after typing it.
Then we can build a new project.
Click New and enter the name of the construction project for the first project, and select the first item
Click ok when you are done.
Then we configure the github remote address
Enter your own github remote project address in the input box and click Save.
Build immediately after that. The existing directory of the built project can be set in the configuration.
After building, we can see our built project under the .Jenkins / workspace folder in the jenkins root directory.
This screenshot is generated after we have configured to build gradle. When the gradle is not configured, there is no build folder in the project under workspace. We also need to configure the following step, as shown in the figure:
Once again, we see all the tasks we built under the home page build queue:
After that, we can see this gradle folder in the previous workspace directory, which is the gradle file under our build project wrapper/dists. You can copy directly to this folder.
Then the built file apk can be found in the following directory:
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.