原创 jenkins pipeline dotnet 編譯模板

一. jenkins pipeline  腳本模板,裏面添加了一些 groovy  語言方法,這個模板目前是編譯 dotnet 使用,支持linux 和windows 機器。#!groovy // dotnet 可以使用模板 sourcef

原创 ansible 動態inventory 腳本實現例子

一. ansible 資源inventory 動態,腳本規範說明需要實現--list ,--host 選項,並輸出json數據即可。   1. --list 輸出:[root@master_101 ansible]# ./dy_host.p

原创 python 操作 openldap 基本操作

# -*- coding: utf-8 -*- # author : s import random,string from ldap3 import Server,Connection,ALL,SUBTREE,ALL_ATTRIBUTE

原创 open*** openldap 腳本認證操作

    1.需要修改配置文件,添加如下內容:   username-as-common-name   script-security 3   auth-user-pass-verify /etc/open***/ldap_auth.py  

原创 vue 使用記錄

vue   使用記錄1.路徑:http://localhost:8081/#/test?name=1     <router-link :to="{path:'/test',query: {name: id}}">跳轉</router-li

原创 jenkins pipeline 正對java 項目 打war ,jar ,或者多級子目錄進行打包

通過jenkins pipeline 中 groovy  語言的一些方法,編寫統一的java pipeline  打包段。stage('up') {     steps {                       script {   

原创 jenkins pipelines 使用ssh 例子

總結一些 pipeline 例子插件名稱: SSH Pipeline Steps使用說明: https://github.com/jenkinsci/ssh-steps-plugin#pipeline-steps!groovy def ge

原创 Jenkins pipeline 使用 郵件擴展發送郵件

一. 在使用 jenkins  郵件拓展的過程中,郵件內容的變量找了好久,現把總結內容整理如下;pipeline{     agent{label 'master'}     environment {                  g

原创 jenkins pipeline腳本 構建 java 項目例子

一. 最近使用jenkins pipeline 比較多,這個是配置一個通用的 java 項目的模板 #!groovy def oper_checkout(SCM_TYPE,SCM_URL,SCM_AUTH_PASS,SCM_BRANCH='

原创 win10 家庭版 CredSSP加密Oracle修正 設置方法

一.首先開啓 組策略    1. 在機器本地編寫一個gpedit_policy.dat 文件,文件名隨意,內容如下:      @echo off         pushd "%~dp0"         dir /b C:\Window

原创 Jnekins pipeline 中使用shell 的一些例子

一. 最近在使用 pipeline 操作 shell  中的一些記錄// 變量 environmet{    def tomcat='/opt/app/tomcat-8' } steps {         sh "sudo su -c '

原创 git 使用過程中問題記錄

一. 系統使用過程中問題記錄    1.  git checkout tfs 代碼出現問題 ,             # 查詢後爲 git 版本過低造成,升級新版軟件(系統爲: CentOS release 6.5 (Final))  #

原创 Maven 編譯出錯

一. maven 編寫出錯及解決辦法:     出錯信息如下:Fatal Error: Unable to find package java.lang in classpath or bootclasspath [INFO] ------

原创 Jenkins pipeline git pycharm 配置

                    一 本地git 服務安裝配置1. 在192.168.8.108 centos 7.3.1611 安裝git 軟件 yum -y install git  useradd git echo ‘qweas

原创 Jenkins pipeline 安裝配置

一.環境配置Linux 環境安裝配置(需要先安裝配置java 環境)1.              Jenkins 主節點安裝配置a)       下載Jenkins war 包訪問 https://jenkins.io/download/