kind: pipeline
type: docker
name: hive-function
clone:
disable: true
steps:
- name: clone
image: drone/git
pull: if-not-exists
environment:
HUSHUAIPWD:
from_secret: HUSHUAIPWD
commands:
- echo $HUSHUAIPWD - name: build
image: maven:3.8.4-jdk-8
pull: if-not-exists
volumes:- name: maven-cache
path: /root/.m2 - name: maven-build
path: /app/build
commands: - $MAVEN_HOME/bin/mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V
- mkdir /app/build/hive-function
- cp -r target/lib target/hive-function.jar /app/build/hive-function
volumes:
- name: maven-cache
- name: maven-cache
host:
path: /usr/local/drone/cache - name: maven-build
host:
path: /usr/local/drone/build
trigger:
branch:- master
想问下大家,已经配置了HUSHUAIPWD变量了,但是在这段代码里为什么取不到HUSHUAIPWD变量的值呢