continuous integration for mobile apps with jenkins
continuous integration for mobile apps with jenkins
Alibabacloud.com offers a wide variety of articles about continuous integration for mobile apps with jenkins, easily find your continuous integration for mobile apps with jenkins information here online.
variable is in effect, enter on the command line: Git version will show git versions, such as:Five, git install directory configurationEnter the system Management-Global Tools Configuration page in Jenkins to add the following configuration, such as:Vi.. Project configurationWhen set up, there will be no error, such as:After saving, start building, such as:The build succeeds, but the execution fails, and the build steps need to be added, such as:Afte
By adding a PowerShell plugin, the published package is pushed to a specific application server using its powerful Windows system commands.System Management-Plug-in management-powershellInstall it, restart Jenkins, and then modify your previous job to add the PowerShell push file scriptAdd a build type that is added below MSBuildThe above PS code function is to use the account for remote login, will send data to the shared folder, overwriting its prev
⑤:jenkins of continuous integration script for automated code deployment and one-click Rollback to the previous version
One: This article uses the way Jenkins invokes shell scripts to get code from a git server, package, deploy to a Web server, remove a Web server from a load balancer, unzip, copy a configuration file,
File (Web project Direct input solution name, for example)Command Line Arguments (the first row in the build parameter is to rebuild the solution; The second line is to build the release version; the third line is to build the 4.0 version of Framwork)At this point, the project code of the Automatic acquisition, compilation has been configured to complete, the next is the deployment of the problem, study the FTP plugin does not solve the problem, I am currently using the Hudson Post build taskBe
1. Install the pipeline plug-in and first recognize
1. Start Jenkins, open browser http://localhost:8080, system administration, user name: chenshanju/123456
2. System Management-plug-in management, install pipeline plugin
3. Configuring the MAVEN EnvironmentSystem Management-Global tool configuration.If MAVEN is not installed on this machine and the name is set to M3, select Install MavenIf MAVEN is installed on this machine, the nam
Use of the system is Ubuntu, so there are a lot of apt-get commands, haha forgive
Install git Git-core
Create a new Git user, and the user's home directory will be used to store git Repository. This user name is not necessarily called git, can be arbitrarily specified, but git is more commonly used, a look at the role of this account
Modify the password
Landing
sudo install git git-coreadduser gitpasswd gitsu gitThe above is a git installation
Get Gitolite
8. Check code updates and compileYou can set the timer check compile function by poll SCM.For example, */5 * * * * is checked every 5 minutes, if there is an update in the Git repository, the build operation is performed.9. Speed up download with mavenSee: http://blog.csdn.net/sheismylife/article/details/7209722Jenkins '. M2 directory path in:/var/lib/jenkins/.m2/Clear all Jar packages First, then create the settings.xml file and edit the following:No
address Http://10.0.0.11:8081/manager, enter your account password to login to view.We can see the projects that are running, we can delete them through undeploy, and then deploy them through our methods below.Third, Jenkins configuration 1, download plug-insDownload the plugin Deploy to container .2. Add Deploy BuildOpen our previous Wenjuan project and operate the selection after the build Deploy war/ear to a container .3. Configure Deploy Build
System settings are primarily used to configure some global settings paths, such as1 JDK2 Ant3 Maven4 Mailetc....Click "System Management" in the Jenkins left menu and click "System Settings" on the System administration page to enter the system settings.1 JDKClick on the "JDK" Install buttonUncheck "Auto Install"Fill in aliases and java_home2 AntSimilar JDK configuration3 MavenSimilar JDK configurationNote1 with MAVEN configuration You can also spec
------------------Build------------------------docker-compose -f ./docker-compose.ci.build.yml -p dockercompose4255153253317384266 up --buildecho ---------------Publishing...------------------docker-compose -f "./docker-compose.yml" -f "./docker-compose.override.yml" -p dockercompose4255153253317384266 up -d --buildThe app is saved and returned to the project interface. Click Build now to deploy your workWe can view the console output:Reference article:Http://www.cnblogs.com/LongJiangXie/p/751
Reference: https://www.cnblogs.com/jimmy-xuli/p/9072015.html1. Need to install the Publish SSH plugin2. Configure Publisher SSH, the following Remote Directory can not be configured. Under the 3rd step, configure the. If configured here. The equivalent user will go directly to the MNT directory.The Remote directory specified in step 3rd below is created in the current MNT directory. The/mnt/mnt/test/directory structure is formed. Remote directory without configuration will create a 3rd step defi
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.