我试图在Dockerfile中RUN sudo su -,并得到了这个错误
/bin/sh: 1: sudo:未找到
这就是我的Dockerfile的样子:
FROM ubuntu:18.04
RUN sudo su -
RUN apt update && install openjdk-8-jdk
RUN wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add - && sudo sh -c 'echo deb http://pkg.jenkins
我是Docker和Jenkins的新手,我正在尝试创建一个Jenkins管道来构建一个Docker形象。当我试图构建并不断收到这个错误时,我被困住了:
/var/jenkins_home/workspace/Docker-Pipeline@tmp/durable-a11b32f8/script.sh:第1行: docker:未找到命令
我在VM上安装了ubuntu。
安装了码头。
安装了码头中心的jenkins/jenkins。
我学习了本教程的其余部分:
我在做和他完全一样的事,但总是失败。
Started by user admin
Obtained Jenkins
我正在使用Jenkins构建一个使用诗歌的python包,下面是在Jenkinsfile上安装诗歌的工作台命令
stage('poetry'){
steps {
sh 'curl -sSL https://install.python-poetry.org | python3'
sh 'export PATH="$HOME/.local/bin:$PATH"'
sh 'poetry --version'
}
}
但是我在构建过程中得到了这个输出错误。
sh
+ curl -sSL h
如何使用带有通配符的curl命令将工件部署到Jfrog Artifactory repo。
I'm trying to use the below from Jenkins pipeline script, and getting an error.
stage 'Deploy Aritfacts to Artifactory'
withCredentials([usernameColonPassword(credentialsId: '<enter credentials ID>', variable: 'pa
我有一个网络共享( GIT存储库驻留在其中)。在我的本地机器上,我已经检出了GIT存储库,我正在使用集成的GIT客户端处理Xamarin Studio。此外,我还安装了Jenkins以进行持续集成。到目前为止,这一切都在起作用。
现在,我想通知Jenkins,当有东西被提交到这个存储库时。在中,我应该在设置Poll选项之后创建一个github post接收触发器。
来自的帖子说,我只需要在hooks文件夹中创建一个post-commit文件,内容类似于
#!/bin/sh
#
# A script which triggers the Jenkins build after a commit.
我正在尝试使用rest api和php7在jenkins中创建作业
95%确定我需要这样的请求
curl -s -XPOST 'http://jenkins/job/FolderName/createItem?name=yourJobName' --data-binary @config.xml -H "Content-Type:text/xml" --user user.name:YourAPIToken
但是我总是收到类似"Failed to persist config.xml“和"Content is not allowed in pro
我试图从Scala应用程序中执行jenkins管道,但是认证是必需的。因此,我认为在这个请求之前,我需要调用auth端点并获得一个令牌,然后在标头上分配它。
val userToken = "user_token_generated_in_jenkins"
val pipelineToken = "pipeline_token"
val pipelineName = "HttpRequestTest"
// test1
val baseUrl = s"http://jenkins_address/view/Development/job
我想使用Tomcat管理器从Jenkins部署一个war。下面是我从命令行执行的操作:
curl -v -u user:pasword -T target/app.war "http://host:8180/manager/text/deploy?path=&update=true"
它需要一点时间并且有效:
* Hostname was NOT found in DNS cache
* Trying ip...
* Connected to host.com (ip) port 8180 (#0)
* Server auth using Basic with u
我试图在Jenkins中使用自定义图像配置kubernetes插件,但是当我启动管道时,我得到了这个错误:
Started by user unknown or anonymous
Running in Durability level: MAX_SURVIVABILITY
[Pipeline] Start of Pipeline
[Pipeline] podTemplate
[Pipeline] {
[Pipeline] node
Still waiting to schedule task
‘testjenkinsslaveagent-54-blfkj-1zp9j-lbn6q’ is of