我创建了一个带有列表框和文本区域的简单页面,其中包含所有条件都需要的条件.
列表框工作正常,但textarea框不会告诉该字段是否需要填充.
<!DOCTYPE html>
<html>
<head>
<title>Ratings & Reviews</title>
<body>
<form>
<span>Customer Service*</span>
<span>
<select name=customer id=aa required>
<option selected="rate" value="" disabled>rate</option>
<option value=1>1</option>
<option value=2>2</option>
<option value=3>3</option>
<option value=4>4</option>
<option value=5>5</option>
</select>
</span>
<br><br>
<span>Value for money*</span>
<span>
<select name=money id=aa required>
<option selected="rate" value="" disabled>rate</option>
<option value=1>1</option>
<option value=2>2</option>
<option value=3>3</option>
<option value=4>4</option>
<option value=5>5</option>
</select>
</span>
<div>
<textarea name="reviews" rows=11 cols=50 maxlength=250 required>
</textarea>
</div>
<div id=submit>
<br>
<input type=submit name=submit value=submit>
</div>
</form>
</body>
</html>
Run Code Online (Sandbox Code Playgroud) 执行名为"A"的上游作业.A执行测试用例成功,即下游项目"B".但是当从B发送邮件时,我们必须在邮件中包含上游项目详细信息(上游项目名称,构建号码).因此,我们可以轻松地将测试运行与各自的上游作业进行映射/核心化.
在下游项目仪表板中,显示详细信息.
Started by upstream project Dev_RM_3.0_CI_Test build number 10
originally caused by:
Run Code Online (Sandbox Code Playgroud)
我查了https://wiki.jenkins-ci.org/display/JENKINS/Building+a+software+project.但在下游找不到任何可以继承的东西.
创建具有以下详细信息的示例作业以显示当前作业详细信息.
echo $BUILD_NUMBER
echo $JOB_NAME
echo $BUILD_ID
Run Code Online (Sandbox Code Playgroud)
但输出是
Building on master in workspace /var/lib/jenkins/workspace/env
[env] $ /bin/sh -xe /tmp/hudson970280339057643719.sh
+ echo 1
1
+ echo env
env
+ echo 1
1
Finished: SUCCESS
Run Code Online (Sandbox Code Playgroud)
如果我使用ps -efW
,则列出Windows进程,但不包括命令行参数.
我碰到,我被告知要使用三个环节pstree
,/proc/PID/cmdline
和procps
.
http://cygwin.com/ml/cygwin/2007-04/msg00813.html
http://cygwin.com/ml/cygwin/2007-04/msg00817.html
http://cygwin.com/ml/cygwin/2007-04/msg00821.html
但是,我没有找到除procps
Cygwin 32位软件包之外的任何软件包.
即使我安装后procps
,我也不知道如何使用它.我阅读了手册页,但没有得到线索.
有人可以帮忙吗?
例如,使用该wmic
命令,我可以看到带参数的完整过程.
C:\Users\test1>wmic process get ProcessID, Commandline /format:csv |grep cmd
OSWIN7VC10-32B1,"C:\Windows\system32\cmd.exe" ,2904
OSWIN7VC10-32B1,C:\Windows\system32\cmd.exe /c c:\ostore74\src\osci\scripts\buil
d_test\nt\batch_conf\winnt_vc100_weekly.bat >C:\Users\test1\AppData\Local\Tem
p\s1io.4 2>C:\Users\test1\AppData\Local\Temp\s1io.5,3968
OSWIN7VC10-32B1,C:\Windows\system32\cmd.exe /c C:\apache-ant-1.7.1\bin\ant.bat -
Djboss.home=C:\ostore74\tmp\javaee\jboss-4.2.3.GA -emacs -k -f C:\ostore74\src\j
mtl\build.xml overnight >> \\ostorenas\odi\ostore_platform_logs\ostore\7.4
.0\test1\winnt_vc100\2013-10-18-1720\unit_retail_jmtl.log 2>&1,1864
OSWIN7VC10-32B1,"C:\Windows\system32\cmd.exe" ,604
OSWIN7VC10-32B1,grep cmd,2064
Run Code Online (Sandbox Code Playgroud)
但是,使用Cygwin ps
命令.
C:\Users\test1>ps -efW |grep cmd
0 2904 0 ? Oct 17 C:\Windows\System32\cmd.exe
0 3968 0 ? Oct …
Run Code Online (Sandbox Code Playgroud) 我使用下面的描述符和pom文件在maven中完成了一些zip包装.但是在默认情况下,它在目标文件夹中创建了jar和zip.现在我想在我使用deploy:deploy-file插件的地方只部署zip内容.但它没有部署而是显示错误.不确定标签有什么问题以及应该如何解决.
Pom文件:
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.wyndhamvo.prototype.dbscripts</groupId>
<artifactId>DB_SCRIPTS</artifactId>
<version>2.0.0.1</version>
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptor>src/assembly/descriptor.xml</descriptor>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<distributionManagement>
<snapshotRepository>
<id>wvoNexus</id>
<file>${project.artifactId}-${project.version}.zip</file>
<url>http://nexus.corproot.com/nexus/content/repositories/snapshots/</url>
</snapshotRepository>
<repository>
<id>wvoNexus</id>
<file>${project.artifactId}-${project.version}.zip</file>
<url>http://nexus.corproot.com/nexus/content/repositories/releases/</url>
</repository>
</distributionManagement>
</project>
Run Code Online (Sandbox Code Playgroud)
程序集插件描述符文件:
<assembly>
<formats>
<format>zip</format>
</formats>
<fileSets>
<fileSet>
<directory>src/main/resources</directory>
<includes>
<include>**/*</include>
</includes>
<outputDirectory>DB_Files</outputDirectory>
</fileSet>
</fileSets>
</assembly>
Run Code Online (Sandbox Code Playgroud)
执行命令:
mvn -X clean package deploy:deploy-file
Run Code Online (Sandbox Code Playgroud)
错误:
[ERROR] Malformed POM C:\Divakar\MavenPrototype\DB_Maven_Test\dev\pom.xml: Unrecognised tag: 'file' (position: START_TAG seen ...<id>wvoNexus</id>\r\n\t\t\t<file>... @37:10) @ …
Run Code Online (Sandbox Code Playgroud) 有人可以帮我创建一个拉链目标而不是maven中的jar.我尝试了几种方法,但无法进步.给定路径中的描述符文件如下:
<assembly>
<formats>
<format>zip</format>
</formats>
<fileSets>
<fileSet>
<directory>src/main</directory>
</fileSet>
</fileSets>
</assembly>
Run Code Online (Sandbox Code Playgroud)
我的pom文件中的程序集插件部分如下:
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptors>
<descriptor>src/assembly/descriptor.xml</descriptor>
</descriptors>
</configuration>
</plugin>
</plugins>
</build>
Run Code Online (Sandbox Code Playgroud)
最终产出:
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ sql1 ---
[INFO] Building jar: C:\Divakar\mvn_project\sql1\target\sql1-0.1.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
Run Code Online (Sandbox Code Playgroud) 看到maven中的编译错误.检查并尝试了我从谷歌和堆栈*网站获得的所有变通办法.但我还是无法解决.
已安装的maven 3.3.3及其支持的java版本1.7.请注意我没有设置JAVA_HOME,M2和M2_HOME环境变量.但仍然走这条路.
Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T07:57:37-04:00)
Maven home: /usr/local/apache-maven-3.3.3
Java version: 1.7.0_85, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.85.x86_64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.32-573.3.1.el6.x86_64", arch: "amd64", family: "unix"
Run Code Online (Sandbox Code Playgroud)
错误是
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /home/sdiuser/Build-Release/hg-artifactid/src/main/java/hg-groupid/App.java:[1,11] ';' expected
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.007 s
[INFO] Finished at: 2015-08-31T02:43:32-04:00
[INFO] Final Memory: 9M/158M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal …
Run Code Online (Sandbox Code Playgroud)