小编use*_*413的帖子

如何从Artifactory存储库下载最新的工件?

我需要来自Artifactory中的存储库的最新工件(例如,快照).需要通过脚本将此工件复制到服务器(Linux).

我有什么选择?像Wget/SCP这样的东西?我如何获得工件的路径?

我找到了一些需要Artifactory Pro的解决方案.但我只有Artifactory,而不是Artifactory Pro.

是否有可能在没有用户界面的情况下从Artifactory下载而没有Pro-Version?有什么经历?

如果重要的话,我正在使用OpenSUSE 12.1(x86_64).

shell artifactory continuous-deployment

58
推荐指数
6
解决办法
11万
查看次数

工件库的目的是什么?

无论您何时阅读有关持续交付持续集成的内容,建议使用工件存储库来存储工件,即使Jenkins已经为每个构建存储它们.

那么为什么建议使用工件库呢?是否有一个平滑的解决方案来处理Jenkins构建的工件,例如.使用这些工件进行部署?

continuous-integration nexus artifactory

36
推荐指数
1
解决办法
2万
查看次数

与詹金斯一起持续部署

我想用jenkins部署到测试环境和生产环境.为此,我需要连接到所需环境的服务器,例如ssh/scp.

我想知道最好的方法是什么.

我找到了一些插件来做这件事,比如Jenkins-Deploy-Plug-in或Jenkins Publish over SSH Plugin.第一个问题很多,部署到生产中并不值得信赖,第二个问题需要更改全局配置,即每个部署的手动工作.

任何想法如何解决这个问题?也许有一些脚本或插件?

我目前唯一的想法是:将jenkins连接到服务器(可能使用SSH插件)并在那里执行连接到所需环境的脚本.但这是两个联系.这真的是必要的吗?我希望有一个更简单的方法.

谢谢你的暗示.

continuous-deployment jenkins jenkins-plugins

35
推荐指数
2
解决办法
3万
查看次数

詹金斯需要声纳和声纳跑步者吗?

我想和詹金斯一起设置Sonar.但我不确定Sonar网站是否描述了两种不同的方法,或者是否有两个必要的步骤:

据我所知,它有两种不同的方式.如果是这种情况,有什么区别,有什么优点和缺点(声纳本身和声纳跑步者之间)?

jenkins jenkins-plugins sonar-runner sonarqube

34
推荐指数
1
解决办法
4万
查看次数

找不到数据库驱动程序:org.postgresql.Driver

我试图用Liquibase升级它来改变一个项目.它是一个Java EE项目.所以我使用liquibase-maven-plugin.

到目前为止我在我的pom.xml中:

            <plugin>
                <groupId>org.liquibase</groupId>
                <artifactId>liquibase-maven-plugin</artifactId>
                <version>2.0.5</version>
                <configuration>
                    <propertyFileWillOverride>true</propertyFileWillOverride>
                    <propertyFile>src/main/resources/liquibase.properties</propertyFile>
                    <changeLogFile>src/main/resources/changelogs/changelog.xml</changeLogFile>
                </configuration>
                <executions>
                    <execution>
                        <!--  Another Error: plugin execution not covered by lifecycle configuration..-->
                        <!-- <phase>process-resources</phase> <goals> <goal>update</goal> </goals> -->
                    </execution>
                </executions>
            </plugin>
Run Code Online (Sandbox Code Playgroud)

其中已包含一个驱动程序:

        <dependency>
            <groupId>postgresql</groupId>
            <artifactId>postgresql</artifactId>
            <version>9.1-901-1.jdbc4</version>
        </dependency>
Run Code Online (Sandbox Code Playgroud)

liquibase.properties文件包含url,username,password,changeLogFile-Path和驱动程序:

#liquibase.properties
driver: org.postgresql.Driver
Run Code Online (Sandbox Code Playgroud)

但它没有驱动程序的类路径.我也需要类路径吗?

changelog.xml有一个简单的变更集,可以创建一个表,只是为了测试liquibase的开头.

但是我到目前为止还没来,因为当我用这个项目运行时

mvn liquibase:update
Run Code Online (Sandbox Code Playgroud)

我得到这个错误:

[错误]未能执行目标org.liquibase:项目PROJECT更新(默认CLI):liquibase - Maven的插件:2.0.5错误设置或运行Liquibase:了java.lang.RuntimeException:找不到数据库驱动程序:组织.postgresql.Driver

我看不出这一点..驱动程序已经在项目之前使用过了.那么为什么liquibase找不到呢?

编辑

当我通过添加驱动程序标记在pom.xml中编辑我的配置时,它可以工作:

            <configuration>
                <propertyFileWillOverride>true</propertyFileWillOverride>
                <propertyFile>src/main/resources/liquibase.properties</propertyFile>
                <changeLogFile>src/main/resources/changelogs/changelog.xml</changeLogFile>
                <driver>org.postgresql.Driver</driver>
            </configuration>
Run Code Online (Sandbox Code Playgroud)

之前我的驱动程序是在liquibase.properties中指定的,它实际上应该也可以.

也许有人可以告诉我如果我想将驱动程序保存在属性文件中liquibase.properties文件应该是什么样子.

postgresql liquibase maven

9
推荐指数
1
解决办法
2万
查看次数

从Javascript调用commandlink操作

我试图用javascript调用bean,使用啊:commandLink.

我有一个commandLink

                <h:commandLink action="#{bean.go()}"
                    styleClass="simple-submit-button" id="uLink">
                    <f:param name="userId" value="#{param['userId']}" />
                </h:commandLink>
Run Code Online (Sandbox Code Playgroud)

它叫我的豆子.

并希望从javascript调用此commandLink,如下所示:

document.getElementById('uLink').click();
Run Code Online (Sandbox Code Playgroud)

但我总是得到错误:document.getElementById('uLink')为空.

我试过这个:

  • 设置h:commandLink immediate ="false"而不是document.getElementById('uLink').click()我使用了document.getElementById('uLink').immediate = true;
  • 使用h:commandButton代替.
  • 使用document.getElementById('formId:uLink').click();

有谁知道我是如何得到这项工作的?

javascript jsf java-ee

2
推荐指数
1
解决办法
1万
查看次数

生产部署的回滚

我即将自动部署到测试服务器和生产.

我有一个ci-server(build,compile,junit)和一个工件库管理器(将构建存储到部署/发布).

目前我可以使用脚本部署到测试服务器(使用ci-server执行).目前没有回滚,db-backups或db-updates.所有服务器都有Suse(linux).

我想知道是否有更好的部署方式,具有回滚功能?也许是其他免费软件工具?否则即使只是一些注释将有助于弄清楚我必须做什么才能够回滚并且不要搞砸了生产.

linux deployment continuous-deployment continuous-delivery

1
推荐指数
1
解决办法
814
查看次数