IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Intégration Continue Discussion :

Automatiser le transport d'un war par FTP


Sujet :

Intégration Continue

  1. #1
    Membre à l'essai
    Femme Profil pro
    Développeur informatique
    Inscrit en
    Septembre 2011
    Messages
    22
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 33
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Septembre 2011
    Messages : 22
    Points : 15
    Points
    15
    Par défaut Automatiser le transport d'un war par FTP
    Bonjour,
    Je travaille sur un projet Maven Portlet, je fais mes builds sous jenkins en utilisant le plugin Maven et subversion (pour récupérer le code) pour le but de construire un War et le déployer sur le Portail 8 WebSphere.

    Mon problème c'est que jenkins est installé sur une machine et websphere est installé sur une autre machine du coup j'arrive pas à déployer ma portlet sur le Portal.

    voila mon POM :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    <build>
    		<finalName>NovaPortail</finalName>
    		<plugins>
    			<plugin>
    				<artifactId>maven-antrun-plugin</artifactId>
    				<executions>
    					<execution>
    						<id>integration-test</id>
    						<phase>integration-test</phase>
    						<configuration>
    							<tasks>
    								<echo message=" >>>>>>>>>>>>>>>>>>>>>>>>>>> 2 . Deploiment du Portlet" />
    								<property environment="env" />
    								<exec executable="/bin/bash" dir="${wps.home}/PortalServer/bin">
    									<arg line="xmlaccess.sh -user ${wps.admin.name} -password ${wps.admin.password} -url ${wps.url} -in ${xmlaccess.path.deploy}" />
    								</exec>
    							</tasks>
    						</configuration>
    						<goals>
    							<goal>run</goal>
    						</goals>
    					</execution>					
    				</executions>
    			</plugin>
    <plugin>
    				<groupId>org.apache.maven.plugins</groupId>
    				<artifactId>maven-compiler-plugin</artifactId>
    				<configuration>
    					<source>1.6</source>
    					<target>1.6</target>
    				</configuration>
    			</plugin>
    		</plugins>
    	</build>
    et voila le code de mon fichier settings.xml
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    <profile>
    		<id>source</id>
    		<properties>
    			<portlet-api.version>2.0</portlet-api.version>
    			<servlet-api.version>2.4</servlet-api.version>
    			<jsp-api.version>2.0</jsp-api.version>						
    			<portal.name>nova.maven.test</portal.name>			
    			<wps.home>/opt/IBM/WebSphere</wps.home>
    			<wps.url>http://portal8-dev.intranet.novaliance.com:10039/wps/config</wps.url>
    			<wps.url.virtuel>http://portal8-dev.intranet.novaliance.com:10039/wps/config/NovaTest</wps.url.virtuel>
    			<wps.admin.name>admin</wps.admin.name>
    			<wps.admin.password>*****</wps.admin.password>
    			<xmlaccess.path.deploy>/tools/MavenProjet/NovaPortail/UpdatePortlet.xml</xmlaccess.path.deploy>
    			<xmlaccess.path.exportPage>/tools/MavenProjet/NovaPortail/ExportPage.xml</xmlaccess.path.exportPage>
    			<xmlaccess.path.exportPageResult>${project.build.directory}/${portal.name}/components/${portal.name}/content/xmlaccess/install/ExportPageResult.xml</xmlaccess.path.exportPageResult>
    			<xmlaccess.path.importPageResult>${project.build.directory}/${portal.name}/components/${portal.name}/content/xmlaccess/install/ImportPageResult.xml</xmlaccess.path.importPageResult>			
    		</properties>
    	</profile>

  2. #2
    Rédacteur
    Avatar de romaintaz
    Homme Profil pro
    Java craftsman
    Inscrit en
    Juillet 2005
    Messages
    3 790
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 45
    Localisation : France, Yvelines (Île de France)

    Informations professionnelles :
    Activité : Java craftsman
    Secteur : Finance

    Informations forums :
    Inscription : Juillet 2005
    Messages : 3 790
    Points : 7 275
    Points
    7 275
    Par défaut
    Bonjour,

    Quand tu dis que tu n'y arrives pas, tu sous-entends quoi ? Ca ne fait rien ? Tu as un message d'erreur ?
    Nous sommes tous semblables, alors acceptons nos différences !
    --------------------------------------------------------------
    Liens : Blog | Page DVP | Twitter
    Articles : Hudson | Sonar | Outils de builds Java Maven 3 | Play! 1 | TeamCity| CitConf 2009
    Critiques : Apache Maven

  3. #3
    Membre à l'essai
    Femme Profil pro
    Développeur informatique
    Inscrit en
    Septembre 2011
    Messages
    22
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 33
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Septembre 2011
    Messages : 22
    Points : 15
    Points
    15
    Par défaut
    Oui effectivement j'ai un message d'erreur.
    D'abord le build echou et puis il m'affiche un message d'erreur comme quoi il arrive pas à accéder au répertoire /opt/IBM/WebSphere/PortalServer/bin qui contient le script xmlaccess.sh que le serveur utilise pour déployer le war.

    voila l'erreur
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    
    [INFO] --- maven-surefire-plugin:2.10:test (default-test) @ NovaPortail ---
    [JENKINS] Recording test results
    [INFO] 
    [INFO] --- maven-war-plugin:2.1.1:war (default-war) @ NovaPortail ---
    [INFO] Packaging webapp
    [INFO] Assembling webapp [NovaPortail] in [/opt/jenkins/jobs/NovaPortail/workspace/target/NovaPortail]
    [INFO] Processing war project
    [INFO] Copying webapp resources [/opt/jenkins/jobs/NovaPortail/workspace/src/main/webapp]
    [INFO] Webapp assembled in [173 msecs]
    [INFO] Building war: /opt/jenkins/jobs/NovaPortail/workspace/target/NovaPortail.war
    [INFO] WEB-INF/web.xml already added, skipping
    [INFO] 
    [INFO] --- maven-antrun-plugin:1.3:run (integration-test) @ NovaPortail ---
    [INFO] Executing tasks
         [echo]  >>>>>>>>>>>>>>>>>>>>>>>>>>> Deploiment du Portlet
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 20.382s
    [INFO] Finished at: Fri Jun 14 10:47:47 CEST 2013
    [INFO] Final Memory: 19M/31M
    [INFO] ------------------------------------------------------------------------
    [JENKINS] Archiving /opt/jenkins/jobs/NovaPortail/workspace/pom.xml to /opt/jenkins/jobs/NovaPortail/modules/nova.mavenapp.novaPortail$NovaPortail/builds/2013-06-14_10-47-10/archive/nova.mavenapp.novaPortail/NovaPortail/1.0-SNAPSHOT/NovaPortail-1.0-SNAPSHOT.pom
    [JENKINS] Archiving /opt/jenkins/jobs/NovaPortail/workspace/target/NovaPortail.war to /opt/jenkins/jobs/NovaPortail/modules/nova.mavenapp.novaPortail$NovaPortail/builds/2013-06-14_10-47-10/archive/nova.mavenapp.novaPortail/NovaPortail/1.0-SNAPSHOT/NovaPortail-1.0-SNAPSHOT.war
    Waiting for Jenkins to finish collecting data
    mavenExecutionResult exceptions not empty
    message : Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.3:run (integration-test) on project NovaPortail: An Ant BuildException has occured: The directory /opt/IBM/WebSphere/PortalServer/bin does not exist
    cause : An Ant BuildException has occured: The directory /opt/IBM/WebSphere/PortalServer/bin does not exist

Discussions similaires

  1. [FTP] Télécharger un fichier par FTP
    Par jerome38000 dans le forum Langage
    Réponses: 5
    Dernier message: 27/05/2011, 15h41
  2. Comment récupérer tout un répertoire par FTP ???
    Par titof dans le forum Réseau
    Réponses: 6
    Dernier message: 03/10/2006, 18h54
  3. transmission par ftp...
    Par youp_db dans le forum Développement
    Réponses: 8
    Dernier message: 24/09/2005, 18h10
  4. Transfert de fichier par ftp
    Par schub1015 dans le forum MFC
    Réponses: 3
    Dernier message: 14/01/2004, 17h53
  5. Réponses: 1
    Dernier message: 19/08/2003, 16h11

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo