jenkins构建联动功能(一)

韵味老鸟 2024-07-19 15:08:32

jenkins构建联动功能 (一)

jenkins构建联动功能

背景:回滚版本使用

安装部署插件:Active Choices

1)Active Choices Parameter

This is a simple parameter that executes a script and renders the returned values as an HTML element. This element can be a list, a dropdown box, radio or check boxes.

2)Active Choices Reactive Parameter

Accepts another parameter as reference, and updates itself whenever the other parameter is changed. The value of the other parameter is made available as a variable that can be used in this parameter's script.

3)Active Choices Reactive Reference Parameter

This parameter is a special cascade choice parameter. It was designed based on the cascade choice parameter, so it is also able to re-render itself whenever another parameter changes.

The difference of this parameter is that users have more freedom on how the HTML element is rendered (if rendered at all). This is useful in cases where users want to display a custom HTML element, write JavaScript that renders something like D3.js or another JavaScript library.

这对于根据其他参数的选择来动态生成参数选项非常有用

4:免密

ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa

cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys

chmod 0600 ~/.ssh/authorized_keys

拷贝keys文件到分组机器上

scp authorized_keys tomcat@192.168.211.130:~/.ssh/authorized_keys

5.进入容器

docker exec -it jenkins_master /bin/bash

0 阅读:0