Notes for continuous building of continuum [reprinted]

Source: Internet
Author: User
Ubuntu continuous build (2)

Continuous build of continuum in Ubuntu (2)
1. the Pom. xml configuration file in the project
<SCM>
<Connection>
SCM: SVN: http://www.sillycat.com/repos/athena
</Connection>
<Strong connection>
SCM: SVN: http://www.sillycat.com/repos/athena
</Login connection>
<URL>
SCM: SVN: http://www.sillycat.com/repos/athena
</URL>
</SCM>
SVN address configured

2. Manage Project
Log on to the Continuum operation page.

Action: new project groups new project group
Click "add Project Group"

Action: Add a project
Click left menu "Maven 2.0.x Project"
The SVN address of the configuration file defined by the POM Project
Pom URL: http://www.sillycat.com/repos/athena/pom.xml
Check out username of SVN
Username: sillycat
SVN Password
Password: xxxxxxx
No check use SCM credentials cache, if available
(If check this checkbox, I get this error report when I build the project:
We have get a build error:
Provider Message: The SVN command failed.
Command output:
-------------------------------------------------------------------------------
SVN: PROPFIND request failed on '/repos/athena'
SVN: propfind of '/repos/athena': Authorization failed (http://www.sillycat.com)
-------------------------------------------------------------------------------
) // This section is very important. The incorrect selection delays nearly one day.

Project group: sillycat
Build definition template: Default maven2 Template

Click "add" button

Action: edit a project modify project information
Click left menu "show project groups"
Choose Project Group sillycat
When you edit a project from the groupsummary, you will see basics informations.

Click the tab menu "notifiers" to add Message notification information
Mail recipient address: magic_dreamer@126.com

Action: Members
The tab menu is next to the tab menu "Project Group Summary"
Edit the project you want to build
Edit the SCM Information

Click "build now"

Action: "build definitions"
Modify the building schedules

3. Email Notification error after build
2456551 [Pool-1-thread-1] info org. codehaus. plexus. Notification. notifier. notifier: Mail-sending message: From '"continuum @ Kiko" <magic_dreamer@126.com> '.
2456551 [Pool-1-thread-1] info org. codehaus. plexus. Notification. notifier. notifier: Mail-recipient: To '<magic_dreamer@126.com> '.
2456590 [Pool-1-thread-1] Error org. Apache. Maven. continuum. Notification. continuumnotifnotifdispatcher: default-error while trying to use the mail notifier.
Org. codehaus. plexus. Notification. icationicationexception: exception while sending message.
At org. Apache. Maven. continuum. Notification. Mail. mailcontinuumnotifier. sendmessage (mailcontinuumnotifier. Java: 566)
At org. Apache. Maven. continuum. Notification. Mail. mailcontinuumnotifier. buildcomplete (mailcontinuumnotifier. Java: 387)
At org. Apache. Maven. continuum. Notification. Mail. mailcontinuumnotifier. sendnotification (mailcontinuumnotifier. Java: 254)
At org. Apache. Maven. continuum. Notification. defaultcontinuumicationicationdispatcher. sendnotification (defacontincontinuumicationdispatcher. Java: 199)
At org. Apache. Maven. continuum. Notification. defaultcontinuumicationicationdispatcher. sendnotification (defacontincontinuumicationdispatcher. Java: 159)
At org. Apache. Maven. continuum. Notification. defaultcontinuumicationdispatcher. buildcomplete (defacontincontinuumicationicationdispatcher. Java: 103)
At org. Apache. Maven. continuum. buildcontroller. defaultbuildcontroller. endbuild (defabuilbuildcontroller. Java: 221)
At org. Apache. Maven. continuum. buildcontroller. defaultbuildcontroller. Build (defabuilbuildcontroller. Java: 175)
At org.apache.maven.continuum.buildcontroller.buildprojecttaskexecutor.exe cutetask (buildprojecttaskexecutor. Java: 50)
At org.codehaus.plexus.taskqueue.exe cution. threadedtaskqueueexecutor $ executorrunnable $ 1.run( threadedtaskqueueexecutor. Java: 116)
At edu. Emory. mathcs. backport. java. util. Concurrent. executors $ runnableadapter. Call (executors. Java: 442)
At edu. Emory. mathcs. backport. java. util. Concurrent. futuretask. Run (futuretask. Java: 176)
At edu. Emory. mathcs. backport. java. util. Concurrent. threadpoolexecutor $ worker. runtask (threadpoolexecutor. Java: 665)
At edu. Emory. mathcs. backport. java. util. Concurrent. threadpoolexecutor $ worker. Run (threadpoolexecutor. Java: 690)
At java. Lang. thread. Run (thread. Java: 595)
Caused by: org. codehaus. plexus. mailsender. mailsenderexception: Error while sending the message.
At org. codehaus. plexus. mailsender. javamail. abstractjavamailmailsender. Send (abstractjavamailmailsender. Java: 226)
At org. Apache. Maven. continuum. Notification. Mail. mailcontinuumnotifier. sendmessage (mailcontinuumnotifier. Java: 562)
... 14 more
Caused by: javax. Mail. messagingexception: cocould not connect to SMTP host: localhost, Port: 25;
Nested exception is:
Java.net. connectexception: Connection refused
At com. Sun. Mail. SMTP. smtptransport. openserver (smtptransport. Java: 1282)
At com. Sun. Mail. SMTP. smtptransport. protocolconnect (smtptransport. Java: 370)
At javax. Mail. Service. Connection (service. Java: 275)
At org. codehaus. plexus. mailsender. javamail. abstractjavamailmailsender. Send (abstractjavamailmailsender. Java: 212)
... 15 more
Caused by: java.net. connectexception: Connection refused
At java.net. plainsocketimpl. socketconnect (native method)
At java.net. plainsocketimpl. doconnect (plainsocketimpl. Java: 333)
At java.net. plainsocketimpl. connecttoaddress (plainsocketimpl. Java: 195)
At java.net. plainsocketimpl. Connect (plainsocketimpl. Java: 182)
At java.net. sockssocketimpl. Connect (sockssocketimpl. Java: 366)
At java.net. Socket. Connect (socket. Java: 520)
At java.net. Socket. Connect (socket. Java: 470)
At com. Sun. Mail. util. socketfetcher. createsocket (socketfetcher. Java: 232)
At com. Sun. Mail. util. socketfetcher. getsocket (socketfetcher. Java: 189)
At com. Sun. Mail. SMTP. smtptransport. openserver (smtptransport. Java: 1250)
... 18 more

An error occurred while connecting to the SMTP server of the local machine. (Of course, this service is not enabled on the local machine)
Modify configurations
/Usr/local/fig-1.1/CONF/plexus. xml

<Resource>
<Name> mail/session </Name>
<Type> javax. Mail. session </type>
<Properties>
<Property>
<Name> mail. SMTP. Host </Name>
<Value> smtp.126.com </value>
</Property>
<Property>
<Name> mail. SMTP. Port </Name>
<Value> 25 </value>
</Property>
<Property>
<Name> mail. SMTP. Auth </Name>
<Value> true </value>
</Property>
<Property>
<Name> mail. SMTP. User </Name>
<Value> magic_dreamer </value>
</Property>
<Property>
<Name> password </Name>
<Value> xxxxxx </value>
</Property>
<Property>
<Name> mail. SMTP. debug </Name>
<Value> true </value>
</Property>
</Properties>
</Resource>

After the configuration is modified, restart the instance to make it ready for use. After selecting the build policy, the system automatically builds every hour and sends an email notification.

Once again, an error is always reported when an email is sent. The error is as follows:

Caused by: COM. Sun. Mail. SMTP. smtpsendfailedexception: 553 you are not authorized to send mail, authentication is required

At com. Sun. Mail. SMTP. smtptransport. issuesendcommand (smtptransport. Java: 1388)
At com. Sun. Mail. SMTP. smtptransport. mailfrom (smtptransport. Java: 959)
At com. Sun. Mail. SMTP. smtptransport. sendmessage (smtptransport. Java: 583)
At org. codehaus. plexus. mailsender. javamail. abstractjavamailmailsender. Send (abstractjavamailmailsender. Java: 214)
... 15 more

After carefully observing the log, it turns out that the user name and password I configured are 126.com, but the MAIL FROM is written in the company's email address, so the authentication fails. Modify mail from.

CD/usr/local/continuum-1.1/apps/continuum/webapp/WEB-INF/classes/META-INF/plexus
VI application. xml
<From-Mailbox> magic_dreamer@126.com </from-Mailbox>
<From-Name> sillycat </from-Name>

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.