+1 for this change. Looks good!!!
On Sun, Mar 20, 2011 at 9:26 PM, Amila Maha Arachchi <[email protected]>wrote:
> Hi Samisa,
>
> I did a small modification. This will check for p2 build errors and send a
> mail if any. If there are no errors it will copy the target/p2_repo to
> packs' place. Didnt commit it yet.
>
> --- compile.sh (revision 90164)
> +++ compile.sh (working copy)
> @@ -88,6 +88,18 @@
> set -v
> }
>
> +check_errors_in_p2_n_continue(){
> + set +v
> + BUILD_STATUS=`tail -n50 $CARBON_SRC_HOME/build.log | grep "BUILD
> SUCCESSFUL"`
> + if [ "$BUILD_STATUS" = "" ]; then
> + MESSAGE_BODY=`egrep -A 40 -B 30 "( FAILURE$)|( ERROR$)|(svn[:]
> Failed)" $CARBON_SRC_HOME/build.log`
> + send_mail "$BUILD_FAILED `pwd`" "$MAIL_LIST" "$MESSAGE_BODY"
> + else
> + cp -r target/p2-repo "$CARBON_BIN_HOME/$DATE_TIME"
> + fi
> + set -v
> +}
> +
> if test -e $CARBON_SRC_HOME/build.lock
> then
> echo "Another build is already in progress."
> @@ -278,7 +290,8 @@
> build_carbon_p2() {
> cd $CARBON_SRC_HOME/features/repository
> bash -c "$BUILD_COMMAND"
> - cp -r target/p2-repo "$CARBON_BIN_HOME/$DATE_TIME"
> + check_errors_in_p2_n_continue
> + #cp -r target/p2-repo "$CARBON_BIN_HOME/$DATE_TIME"
> echo $DATE_TIME
> cp $CARBON_SRC_HOME/build.log "$CARBON_BIN_HOME/$DATE_TIME"
>
>
> WDYT?
>
> Thanks,
> AmilaM.
>
> On Sun, Mar 20, 2011 at 7:08 PM, Samisa Abeysinghe <[email protected]>wrote:
>
>> The build script still needs to be tuned a bit. It has failed, yet says
>> success. Also, there seem to be a P2 issue
>>
>>
>> On Sun, Mar 20, 2011 at 6:09 PM, WSO2 Builder <[email protected]> wrote:
>>
>>> Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
>>> Unable to download the artifact from any repository
>>>
>>> Try downloading the file manually from the project website.
>>>
>>> Then, install it using the command:
>>> mvn install:install-file
>>> -DgroupId=org.wso2.gs-DartifactId=org.wso2.gs.styles.feature
>>> -Dversion=2.0.0-SNAPSHOT
>>> -Dpackaging=zip -Dfile=/path/to/file
>>>
>>> Alternatively, if you host your own repository you can deploy the file
>>> there:
>>> mvn deploy:deploy-file
>>> -DgroupId=org.wso2.gs-DartifactId=org.wso2.gs.styles.feature
>>> -Dversion=2.0.0-SNAPSHOT
>>> -Dpackaging=zip -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>>>
>>>
>>> org.wso2.gs:org.wso2.gs.styles.feature:zip:2.0.0-SNAPSHOT
>>>
>>> from the specified remote repositories:
>>> com.springsource.repository.bundles.release (
>>> http://repository.springsource.com/maven/bundles/release),
>>> com.springsource.repository.bundles.external (
>>> http://repository.springsource.com/maven/bundles/external),
>>> wso2-maven2-snapshot-repository (http://dist.wso2.org/snapshots/maven2
>>> ),
>>> central (http://repo1.maven.org/maven2),
>>> wso2-maven2-repository (http://dist.wso2.org/maven2)
>>>
>>>
>>> at
>>> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:228)
>>> at
>>> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:90)
>>> at
>>> org.wso2.maven.p2.generate.utils.MavenUtils.getResolvedArtifact(MavenUtils.java:39)
>>> ... 22 more
>>> Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable
>>> to download the artifact from any repository
>>> at
>>> org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:404)
>>> at
>>> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:216)
>>> ... 24 more
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [ERROR] BUILD ERROR
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] ERROR
>>>
>>> Unable to download the artifact from any repository
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] For more information, run Maven with the -e switch
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Total time: 1 minute 22 seconds
>>> [INFO] Finished at: Sun Mar 20 18:09:54 IST 2011
>>> [INFO] Final Memory: 28M/1237M
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> cp: cannot stat `target/p2-repo': No such file or directory
>>> 2011-03-20_18-05-29
>>> Carbon packs are available at :
>>> http://10.100.1.43/~carbon/releases/carbon/3.2.0/latest/
>>> tail -n50 $CARBON_SRC_HOME/build.log
>>> _______________________________________________
>>> Carbon-dev mailing list
>>> [email protected]
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>> Thanks,
>> Samisa...
>>
>> Samisa Abeysinghe
>> VP Engineering
>> WSO2 Inc.
>> http://wso2.com
>> http://wso2.org
>>
>>
>>
>>
>> _______________________________________________
>> Carbon-dev mailing list
>> [email protected]
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
> Thanks,
Samisa...
Samisa Abeysinghe
VP Engineering
WSO2 Inc.
http://wso2.com
http://wso2.org
_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev